fluent-plugin-elasticsearch 2.10.3 → 2.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +2 -2
- data/.editorconfig +9 -9
- data/.gitignore +18 -18
- data/.travis.yml +14 -14
- data/Gemfile +8 -8
- data/History.md +243 -239
- data/ISSUE_TEMPLATE.md +25 -25
- data/LICENSE.txt +201 -201
- data/PULL_REQUEST_TEMPLATE.md +10 -10
- data/README.md +807 -807
- data/Rakefile +11 -11
- data/appveyor.yml +35 -35
- data/fluent-plugin-elasticsearch.gemspec +31 -31
- data/lib/fluent/plugin/elasticsearch_constants.rb +13 -13
- data/lib/fluent/plugin/elasticsearch_error_handler.rb +89 -87
- data/lib/fluent/plugin/elasticsearch_index_template.rb +60 -60
- data/lib/fluent/plugin/filter_elasticsearch_genid.rb +25 -25
- data/lib/fluent/plugin/out_elasticsearch.rb +540 -538
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +294 -294
- data/test/helper.rb +24 -24
- data/test/plugin/test_elasticsearch_error_handler.rb +195 -195
- data/test/plugin/test_filter_elasticsearch_genid.rb +44 -44
- data/test/plugin/test_out_elasticsearch.rb +2055 -2046
- data/test/plugin/test_out_elasticsearch_dynamic.rb +992 -992
- data/test/plugin/test_template.json +23 -23
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 806f3376d37909e5f98ce11b313132b3d73ac940cea027ea7fcb0fc0df767fcc
|
4
|
+
data.tar.gz: 3b70fe3714adb5ad37e6053676fc16ce9791fd6ab102cc069e8780fc774c4bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df7e05f299e5369c3c4c45ffc616ecaa13077ca1d340041c6bdd9a760c5fd5e49152951388b8f5369375a79b6d01496ce99b03e72a87b7ae276da365fe56cf6a
|
7
|
+
data.tar.gz: 21a30f40d33dc13c0aa4b92a4d6d5015e2d1663f97d55ac654ba55642851c5100cc018c367e3f910c59a587e967f334e9f9359789d7681891514ebe6f655f35b
|
data/.coveralls.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
service_name: travis-ci
|
2
|
-
|
1
|
+
service_name: travis-ci
|
2
|
+
|
data/.editorconfig
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# EditorConfig: http://EditorConfig.org
|
2
|
-
|
3
|
-
root = true
|
4
|
-
|
5
|
-
[*]
|
6
|
-
end_of_line = lf
|
7
|
-
insert_final_newline = true
|
8
|
-
indent_style = space
|
9
|
-
indent_size = 2
|
1
|
+
# EditorConfig: http://EditorConfig.org
|
2
|
+
|
3
|
+
root = true
|
4
|
+
|
5
|
+
[*]
|
6
|
+
end_of_line = lf
|
7
|
+
insert_final_newline = true
|
8
|
+
indent_style = space
|
9
|
+
indent_size = 2
|
data/.gitignore
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
.DS_Store
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
.DS_Store
|
data/.travis.yml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
rvm:
|
4
|
-
- 2.1
|
5
|
-
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4.4
|
8
|
-
- 2.5.1
|
9
|
-
|
10
|
-
gemfile:
|
11
|
-
- Gemfile
|
12
|
-
|
13
|
-
script: bundle exec rake test
|
14
|
-
sudo: false
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
rvm:
|
4
|
+
- 2.1
|
5
|
+
- 2.2
|
6
|
+
- 2.3
|
7
|
+
- 2.4.4
|
8
|
+
- 2.5.1
|
9
|
+
|
10
|
+
gemfile:
|
11
|
+
- Gemfile
|
12
|
+
|
13
|
+
script: bundle exec rake test
|
14
|
+
sudo: false
|
data/Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in fluent-plugin-elasticsearch.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
gem 'simplecov', require: false
|
7
|
-
gem 'coveralls', require: false
|
8
|
-
gem 'strptime', require: false if RUBY_ENGINE == "ruby" && RUBY_VERSION =~ /^2/
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in fluent-plugin-elasticsearch.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
gem 'simplecov', require: false
|
7
|
+
gem 'coveralls', require: false
|
8
|
+
gem 'strptime', require: false if RUBY_ENGINE == "ruby" && RUBY_VERSION =~ /^2/
|
data/History.md
CHANGED
@@ -1,239 +1,243 @@
|
|
1
|
-
## Changelog [[tags]](https://github.com/uken/fluent-plugin-elasticsearch/tags)
|
2
|
-
|
3
|
-
### [Unreleased]
|
4
|
-
|
5
|
-
### 2.10.
|
6
|
-
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
-
|
14
|
-
|
15
|
-
### 2.10.
|
16
|
-
- Uplift Merge pull request #
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
-
|
21
|
-
|
22
|
-
### 2.9.
|
23
|
-
- Uplift Merge pull request #
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
-
|
49
|
-
|
50
|
-
### 2.
|
51
|
-
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
-
|
62
|
-
|
63
|
-
### 2.
|
64
|
-
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
### 2.1.
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
|
106
|
-
### 2.0.0.rc.
|
107
|
-
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
### 2.0.0.rc.
|
114
|
-
- add
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
-
|
128
|
-
|
129
|
-
### 1.9.
|
130
|
-
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
-
|
138
|
-
|
139
|
-
### 1.9.0
|
140
|
-
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
- add support for `
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
- add `
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
|
160
|
-
|
161
|
-
- add `
|
162
|
-
- add `
|
163
|
-
|
164
|
-
|
165
|
-
- add `
|
166
|
-
- add `
|
167
|
-
|
168
|
-
### 1.
|
169
|
-
- add `
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
-
|
177
|
-
|
178
|
-
### 1.
|
179
|
-
-
|
180
|
-
-
|
181
|
-
|
182
|
-
### 1.
|
183
|
-
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
- add
|
211
|
-
- fix
|
212
|
-
|
213
|
-
### 0.
|
214
|
-
-
|
215
|
-
-
|
216
|
-
|
217
|
-
### 0.3.
|
218
|
-
-
|
219
|
-
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
-
|
224
|
-
- add
|
225
|
-
|
226
|
-
### 0.
|
227
|
-
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
1
|
+
## Changelog [[tags]](https://github.com/uken/fluent-plugin-elasticsearch/tags)
|
2
|
+
|
3
|
+
### [Unreleased]
|
4
|
+
|
5
|
+
### 2.10.4
|
6
|
+
- Use Fluent::UnrecoverableError as unrecoverable error class ancestors (#433)
|
7
|
+
- Add parameter validation for retrying template installation (#429)
|
8
|
+
|
9
|
+
### 2.10.3
|
10
|
+
- Add retry mechanism for template installation (#428)
|
11
|
+
|
12
|
+
### 2.10.2
|
13
|
+
- Use logstash_prefix_separator on elasticsearch_dynamic (#427)
|
14
|
+
|
15
|
+
### 2.10.1
|
16
|
+
- Uplift Merge pull request #419 from jcantrill/retry_prefix (#421)
|
17
|
+
- Uplift Merge pull request #418 from jcantrill/emit_exception (#420)
|
18
|
+
|
19
|
+
### 2.10.0
|
20
|
+
- Uplift Merge pull request #405 from jcantrill/sanitize_bulk (#414)
|
21
|
+
|
22
|
+
### 2.9.2
|
23
|
+
- Uplift Merge pull request #410 from richm/v0.12-consistent-errors-and-tests (#411)
|
24
|
+
- Add correct link for include_timestamp (#408)
|
25
|
+
|
26
|
+
### 2.9.1
|
27
|
+
- Uplift Merge pull request #406 from richm/v0.12-successes-duplicates-no-retry (#407)
|
28
|
+
|
29
|
+
### 2.9.0
|
30
|
+
- DLQ revisited v1 uplifted #398, #402 (#404)
|
31
|
+
|
32
|
+
### 2.8.6
|
33
|
+
- auth: Fix missing auth tokens after reloading connections (#394)
|
34
|
+
|
35
|
+
### 2.8.5
|
36
|
+
- Add deprecated option into content_type parameter (#391)
|
37
|
+
|
38
|
+
### 2.8.4
|
39
|
+
- Use nanosecond precision in elasticsearch_dynamic (#387)
|
40
|
+
|
41
|
+
### 2.8.3
|
42
|
+
- Specify SSL/TLS version in out_elasticsearch_dynamic (#385)
|
43
|
+
|
44
|
+
### 2.8.2
|
45
|
+
- Revert content type header default value (#383)
|
46
|
+
|
47
|
+
### 2.8.1
|
48
|
+
- Restore default value of type name #(377)
|
49
|
+
|
50
|
+
### 2.8.0
|
51
|
+
- Remove outdated generating hash id support module (#373)
|
52
|
+
- Check Elasticsearch major version (#371)
|
53
|
+
|
54
|
+
### 2.7.0
|
55
|
+
- Configureable content type (#367)
|
56
|
+
|
57
|
+
### 2.6.1
|
58
|
+
- Prevent error when using template in elasticsearch_dynamic for elementally use case (#363)
|
59
|
+
|
60
|
+
### 2.6.0
|
61
|
+
- Handle high precision time format when using custom time_key (#360)
|
62
|
+
|
63
|
+
### 2.5.0
|
64
|
+
- Using nested record in `id_key`, `parent_key`, and `routing_key` (#351)
|
65
|
+
- Fix inverted case of a proper noun "Elasticsearch" (#349)
|
66
|
+
|
67
|
+
### 2.4.1
|
68
|
+
- Add config parameter to enable elasticsearch-ruby's transporter logging (#342)
|
69
|
+
|
70
|
+
### 2.4.0
|
71
|
+
- Add built-in placeholders support against type_name parameter (#338)
|
72
|
+
|
73
|
+
### 2.3.0
|
74
|
+
- Allow overwriting existing index template (#239)
|
75
|
+
|
76
|
+
### 2.2.0
|
77
|
+
- GA release 2.2.0.
|
78
|
+
|
79
|
+
### 2.2.0.rc.1
|
80
|
+
- Separate generate hash id module and bundled new plugin for generating unique hash id (#331)
|
81
|
+
|
82
|
+
### 2.1.1
|
83
|
+
- Raise ConfigError when specifying different @hash_config.hash_id_key and id_key configration (#327)
|
84
|
+
- Small typo fix in README.md (#325)
|
85
|
+
|
86
|
+
### 2.1.0
|
87
|
+
- Retry on certain errors from Elasticsearch (#322)
|
88
|
+
|
89
|
+
### 2.0.1
|
90
|
+
- Releasing generating hash id mechanism to avoid records duplication feature.
|
91
|
+
|
92
|
+
### 2.0.1.rc.1
|
93
|
+
- Add generating hash id mechanism to avoid records duplication (#318)
|
94
|
+
|
95
|
+
### 2.0.0
|
96
|
+
- Release for Fluentd v0.14 stable.
|
97
|
+
|
98
|
+
### 2.0.0.rc.7
|
99
|
+
- Add `include_timestamp` option (#310)
|
100
|
+
|
101
|
+
### 2.0.0.rc.6
|
102
|
+
- Improve documentation (#304)
|
103
|
+
- Handle dynamic_config misconfigurations (#305)
|
104
|
+
- Escape basic authentication user information placeholders (#306)
|
105
|
+
|
106
|
+
### 2.0.0.rc.5
|
107
|
+
- make configurable with `ssl_version` parameter (#299)
|
108
|
+
- add `logstash_prefix_separator` config parameter (#297)
|
109
|
+
|
110
|
+
### 2.0.0.rc.4
|
111
|
+
- fix license identifier in gemspec (#294)
|
112
|
+
|
113
|
+
### 2.0.0.rc.3
|
114
|
+
- add built-in placeholders support (#288, #293)
|
115
|
+
- permit multi workers feature (#291)
|
116
|
+
|
117
|
+
### 2.0.0.rc.2
|
118
|
+
- add pipeline parameter (#290)
|
119
|
+
|
120
|
+
### 2.0.0.rc.1
|
121
|
+
- Use v0.14 API to support nanosecond precision (#223)
|
122
|
+
|
123
|
+
### 1.9.5
|
124
|
+
- sub-second time precision [(#249)](https://github.com/uken/fluent-plugin-elasticsearch/pull/249)
|
125
|
+
|
126
|
+
### 1.9.4
|
127
|
+
- Include 'Content-Type' header in `transport_options`
|
128
|
+
|
129
|
+
### 1.9.3
|
130
|
+
- Use latest elasticsearch-ruby (#240)
|
131
|
+
- Log ES response errors (#230)
|
132
|
+
|
133
|
+
### 1.9.2
|
134
|
+
- Fix elasticsearch_dynamic for v0.14 (#224)
|
135
|
+
|
136
|
+
### 1.9.1
|
137
|
+
- Cast `reload_*` configs in out_elasticsearch_dynamic to bool (#220)
|
138
|
+
|
139
|
+
### 1.9.0
|
140
|
+
- add `time_parse_error_tag` (#211)
|
141
|
+
- add `reconnect_on_error` (#214)
|
142
|
+
|
143
|
+
### 1.9.0.rc.1
|
144
|
+
- Optimize output plugins (#203)
|
145
|
+
|
146
|
+
### 1.8.0
|
147
|
+
- fix typo in defaults for ssl_verify on elasticsearch_dynamic (#202)
|
148
|
+
- add support for `templates` (#196)
|
149
|
+
- rename `send` method to `send_bulk` (#206)
|
150
|
+
|
151
|
+
### 1.7.0
|
152
|
+
- add support for `template_name` and `template_file` (#194)
|
153
|
+
|
154
|
+
### 1.6.0
|
155
|
+
- add support for dot separated `target_index_key` and `target_type_key` (#175)
|
156
|
+
- add `remove_keys_on_update` and `remove_keys_on_update_key` (#189)
|
157
|
+
- fix support for fluentd v0.14 (#191)
|
158
|
+
- remove support for elasticsearch v2 for now (#177)
|
159
|
+
|
160
|
+
### 1.5.0
|
161
|
+
- add `routing_key` (#158)
|
162
|
+
- add `time_key_exclude_timestamp` to exclude `@timestamp` (#161)
|
163
|
+
- convert index names to lowercase (#163)
|
164
|
+
- add `remove_keys` (#164)
|
165
|
+
- add `flatten_hashes` (#168)
|
166
|
+
- add `target_type_key` (#169)
|
167
|
+
|
168
|
+
### 1.4.0
|
169
|
+
- add `target_index_key` to specify target index (#153)
|
170
|
+
- add `time_key_format` for faster time format parsing (#154)
|
171
|
+
|
172
|
+
### 1.3.0
|
173
|
+
- add `write_operation`
|
174
|
+
|
175
|
+
### 1.2.1
|
176
|
+
- fix `resurrect_after` in out_elasticsearch_dynamic
|
177
|
+
|
178
|
+
### 1.2.0
|
179
|
+
- out_elasticsearch_dynamic get memory improvement and fix for race condition (#133)
|
180
|
+
- Add `resurrect_after` option (#136)
|
181
|
+
|
182
|
+
### 1.1.0
|
183
|
+
- Support SSL client verification and custom CA file (#123)
|
184
|
+
- Release experimental `type elasticsearch_dynamic` (#127)
|
185
|
+
|
186
|
+
### 1.0.0
|
187
|
+
- password config param is now marked as secret and won't be displayed in logs.
|
188
|
+
|
189
|
+
### 0.9.0
|
190
|
+
- Add `ssl_verify` option (#108)
|
191
|
+
|
192
|
+
### 0.8.0
|
193
|
+
- Replace Patron with Excon HTTP client (#93)
|
194
|
+
|
195
|
+
### 0.7.0
|
196
|
+
- Add new option `time_key` (#85)
|
197
|
+
|
198
|
+
### 0.6.1
|
199
|
+
- 0.10.43 is minimum version required of fluentd (#79)
|
200
|
+
|
201
|
+
### 0.6.0
|
202
|
+
- added `reload_on_failure` and `reload_connections` flags (#78)
|
203
|
+
|
204
|
+
### 0.5.1
|
205
|
+
- fix legacy hosts option, port should be optional (#75)
|
206
|
+
|
207
|
+
### 0.5.0
|
208
|
+
- add full connection URI support (#65)
|
209
|
+
- use `@timestamp` for index (#41)
|
210
|
+
- add support for elasticsearch gem version 1 (#71)
|
211
|
+
- fix connection reset & retry when connection is lost (#67)
|
212
|
+
|
213
|
+
### 0.4.0
|
214
|
+
- add `request_timeout` config (#59)
|
215
|
+
- fix lockup when non-hash values are sent (#52)
|
216
|
+
|
217
|
+
### 0.3.1
|
218
|
+
- force using patron (#46)
|
219
|
+
- do not generate @timestamp if already part of message (#35)
|
220
|
+
|
221
|
+
### 0.3.0
|
222
|
+
- add `parent_key` option (#28)
|
223
|
+
- have travis-ci build on multiple rubies (#30)
|
224
|
+
- add `utc_index` and `hosts` options, switch to using `elasticsearch` gem (#26, #29)
|
225
|
+
|
226
|
+
### 0.2.0
|
227
|
+
- fix encoding issues with JSON conversion and again when sending to elasticsearch (#19, #21)
|
228
|
+
- add logstash_dateformat option (#20)
|
229
|
+
|
230
|
+
### 0.1.4
|
231
|
+
- add logstash_prefix option
|
232
|
+
|
233
|
+
### 0.1.3
|
234
|
+
- raising an exception on non-success response from elasticsearch
|
235
|
+
|
236
|
+
### 0.1.2
|
237
|
+
- add id_key option
|
238
|
+
|
239
|
+
### 0.1.1
|
240
|
+
- fix timezone in logstash key
|
241
|
+
|
242
|
+
### 0.1.0
|
243
|
+
- Initial gem release.
|