fluent-plugin-elasticsearch 5.0.0 → 5.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/linux.yml +5 -2
- data/.github/workflows/macos.yml +5 -2
- data/.github/workflows/windows.yml +5 -2
- data/Gemfile +1 -1
- data/History.md +65 -1
- data/README.Troubleshooting.md +91 -0
- data/README.md +129 -4
- data/fluent-plugin-elasticsearch.gemspec +2 -1
- data/lib/fluent/plugin/elasticsearch_compat.rb +30 -0
- data/lib/fluent/plugin/elasticsearch_error_handler.rb +19 -4
- data/lib/fluent/plugin/elasticsearch_fallback_selector.rb +2 -2
- data/lib/fluent/plugin/elasticsearch_index_lifecycle_management.rb +18 -4
- data/lib/fluent/plugin/elasticsearch_index_template.rb +20 -4
- data/lib/fluent/plugin/elasticsearch_simple_sniffer.rb +2 -1
- data/lib/fluent/plugin/filter_elasticsearch_genid.rb +1 -1
- data/lib/fluent/plugin/in_elasticsearch.rb +2 -1
- data/lib/fluent/plugin/oj_serializer.rb +2 -1
- data/lib/fluent/plugin/out_elasticsearch.rb +80 -19
- data/lib/fluent/plugin/out_elasticsearch_data_stream.rb +132 -62
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +3 -1
- data/test/plugin/mock_chunk.dat +0 -0
- data/test/plugin/test_elasticsearch_error_handler.rb +130 -23
- data/test/plugin/test_elasticsearch_fallback_selector.rb +16 -8
- data/test/plugin/test_elasticsearch_index_lifecycle_management.rb +55 -15
- data/test/plugin/test_filter_elasticsearch_genid.rb +16 -16
- data/test/plugin/test_in_elasticsearch.rb +20 -0
- data/test/plugin/test_out_elasticsearch.rb +795 -134
- data/test/plugin/test_out_elasticsearch_data_stream.rb +717 -117
- data/test/plugin/test_out_elasticsearch_dynamic.rb +150 -18
- metadata +21 -5
- data/.travis.yml +0 -40
- data/appveyor.yml +0 -20
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diogo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-06-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -68,6 +68,20 @@ dependencies:
|
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: webrick
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.7.0
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.7.0
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
86
|
name: webmock
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,12 +151,12 @@ files:
|
|
137
151
|
- ".editorconfig"
|
138
152
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
139
153
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
154
|
+
- ".github/dependabot.yml"
|
140
155
|
- ".github/workflows/issue-auto-closer.yml"
|
141
156
|
- ".github/workflows/linux.yml"
|
142
157
|
- ".github/workflows/macos.yml"
|
143
158
|
- ".github/workflows/windows.yml"
|
144
159
|
- ".gitignore"
|
145
|
-
- ".travis.yml"
|
146
160
|
- CONTRIBUTING.md
|
147
161
|
- Gemfile
|
148
162
|
- History.md
|
@@ -154,11 +168,11 @@ files:
|
|
154
168
|
- README.Troubleshooting.md
|
155
169
|
- README.md
|
156
170
|
- Rakefile
|
157
|
-
- appveyor.yml
|
158
171
|
- fluent-plugin-elasticsearch.gemspec
|
159
172
|
- gemfiles/Gemfile.elasticsearch.v6
|
160
173
|
- lib/fluent/log-ext.rb
|
161
174
|
- lib/fluent/plugin/default-ilm-policy.json
|
175
|
+
- lib/fluent/plugin/elasticsearch_compat.rb
|
162
176
|
- lib/fluent/plugin/elasticsearch_constants.rb
|
163
177
|
- lib/fluent/plugin/elasticsearch_error.rb
|
164
178
|
- lib/fluent/plugin/elasticsearch_error_handler.rb
|
@@ -174,6 +188,7 @@ files:
|
|
174
188
|
- lib/fluent/plugin/out_elasticsearch_data_stream.rb
|
175
189
|
- lib/fluent/plugin/out_elasticsearch_dynamic.rb
|
176
190
|
- test/helper.rb
|
191
|
+
- test/plugin/mock_chunk.dat
|
177
192
|
- test/plugin/test_alias_template.json
|
178
193
|
- test/plugin/test_elasticsearch_error_handler.rb
|
179
194
|
- test/plugin/test_elasticsearch_fallback_selector.rb
|
@@ -209,12 +224,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
224
|
- !ruby/object:Gem::Version
|
210
225
|
version: '0'
|
211
226
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
227
|
+
rubygems_version: 3.2.32
|
213
228
|
signing_key:
|
214
229
|
specification_version: 4
|
215
230
|
summary: Elasticsearch output plugin for Fluent event collector
|
216
231
|
test_files:
|
217
232
|
- test/helper.rb
|
233
|
+
- test/plugin/mock_chunk.dat
|
218
234
|
- test/plugin/test_alias_template.json
|
219
235
|
- test/plugin/test_elasticsearch_error_handler.rb
|
220
236
|
- test/plugin/test_elasticsearch_fallback_selector.rb
|
data/.travis.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
jobs:
|
4
|
-
include:
|
5
|
-
- rvm: 2.4.6
|
6
|
-
gemfile: Gemfile
|
7
|
-
os: linux
|
8
|
-
arch: amd64
|
9
|
-
- rvm: 2.5.5
|
10
|
-
gemfile: Gemfile
|
11
|
-
os: linux
|
12
|
-
arch: amd64
|
13
|
-
- rvm: 2.6.3
|
14
|
-
gemfile: gemfiles/Gemfile.elasticsearch.v6
|
15
|
-
os: linux
|
16
|
-
arch: amd64
|
17
|
-
- rvm: 2.6.3
|
18
|
-
gemfile: Gemfile
|
19
|
-
os: linux
|
20
|
-
arch: amd64
|
21
|
-
- rvm: 2.6.3
|
22
|
-
gemfile: Gemfile
|
23
|
-
os: linux
|
24
|
-
arch: arm64
|
25
|
-
- rvm: 2.6.3
|
26
|
-
gemfile: Gemfile
|
27
|
-
os: osx
|
28
|
-
osx_image: xcode11.3
|
29
|
-
- rvm: 2.7.0
|
30
|
-
gemfile: Gemfile
|
31
|
-
os: linux
|
32
|
-
arch: amd64
|
33
|
-
|
34
|
-
gemfile:
|
35
|
-
- Gemfile
|
36
|
-
|
37
|
-
before_install:
|
38
|
-
- gem update --system=2.7.8
|
39
|
-
|
40
|
-
script: bundle exec rake test
|
data/appveyor.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
version: '{build}'
|
2
|
-
install:
|
3
|
-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
4
|
-
- ridk.cmd enable
|
5
|
-
- ruby --version
|
6
|
-
- gem --version
|
7
|
-
- bundle install
|
8
|
-
build: off
|
9
|
-
test_script:
|
10
|
-
- bundle exec rake test
|
11
|
-
|
12
|
-
# https://www.appveyor.com/docs/installed-software/#ruby
|
13
|
-
environment:
|
14
|
-
matrix:
|
15
|
-
- ruby_version: "26-x64"
|
16
|
-
- ruby_version: "26"
|
17
|
-
- ruby_version: "25-x64"
|
18
|
-
- ruby_version: "25"
|
19
|
-
- ruby_version: "24-x64"
|
20
|
-
- ruby_version: "24"
|