fluent-plugin-elasticsearch 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +4 -0
- data/ISSUE_TEMPLATE.md +1 -1
- data/README.md +20 -0
- data/fluent-plugin-elasticsearch.gemspec +1 -1
- data/lib/fluent/plugin/out_elasticsearch.rb +15 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c97979569c84fe8da4d767719bd6c578272934b7f07b143c2d1159744ddc7ae
|
4
|
+
data.tar.gz: ae22033749ba9ead39e5ad18cfd2c1e5c4cd331e2bb84130069554b53dada518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c05dc897217fa33ac94c0978a8ea33c0d778fff49411fe6a7ebe5961e68df5f0a54b081721134a0875dd9dc3a2bcb7a75e22b5489889be60b74ba389f10e371
|
7
|
+
data.tar.gz: 58b30acc2a8c0f0d25b08ea3da002e311689b551746e966c4ab82022c3ff417d0fd80d3711b6695fd599ac100eef6f17767938d5a511cef4046455df6b0dd40b
|
data/History.md
CHANGED
data/ISSUE_TEMPLATE.md
CHANGED
@@ -20,7 +20,7 @@ Provide example config and message
|
|
20
20
|
* Bare Metal or within Docker or Kubernetes or others?
|
21
21
|
* Fluentd v0.12 or v0.14/v1.0
|
22
22
|
* paste result of ``fluentd --version`` or ``td-agent --version``
|
23
|
-
* ES plugin 2.x.y or 1.x.y
|
23
|
+
* ES plugin 3.x.y/2.x.y or 1.x.y
|
24
24
|
* paste boot log of fluentd or td-agent
|
25
25
|
* paste result of ``fluent-gem list``, ``td-agent-gem list`` or your Gemfile.lock
|
26
26
|
* ES version (optional)
|
data/README.md
CHANGED
@@ -86,6 +86,7 @@ Current maintainers: @cosmo0920
|
|
86
86
|
+ [Cannot connect TLS enabled reverse Proxy](#cannot-connect-tls-enabled-reverse-proxy)
|
87
87
|
+ [Declined logs are resubmitted forever, why?](#declined-logs-are-resubmitted-forever-why)
|
88
88
|
+ [Suggested to increase flush_thread_count, why?](#suggested-to-increase-flush_thread_count-why)
|
89
|
+
+ [Suggested to install typhoeus gem, why?](#suggested-to-install-typhoeus-gem-why)
|
89
90
|
* [Contact](#contact)
|
90
91
|
* [Contributing](#contributing)
|
91
92
|
* [Running tests](#running-tests)
|
@@ -1272,6 +1273,25 @@ To prevent the following warning and sending events blocking, you must specify `
|
|
1272
1273
|
</match>
|
1273
1274
|
```
|
1274
1275
|
|
1276
|
+
### Suggested to install typhoeus gem, why?
|
1277
|
+
|
1278
|
+
fluent-plugin-elasticsearch doesn't depend on typhoeus gem by default.
|
1279
|
+
If you want to use typhoeus backend, you must install typhoeus gem by your own.
|
1280
|
+
|
1281
|
+
If you use vanilla Fluentd, you can install it by:
|
1282
|
+
|
1283
|
+
```
|
1284
|
+
gem install typhoeus
|
1285
|
+
```
|
1286
|
+
|
1287
|
+
But, you use td-agent instead of vannila Fluentd, you have to use `td-agent-gem`:
|
1288
|
+
|
1289
|
+
```
|
1290
|
+
td-agent-gem install typhoeus
|
1291
|
+
```
|
1292
|
+
|
1293
|
+
In more detail, please refer to [the official plugin management document](https://docs.fluentd.org/v1.0/articles/plugin-management).
|
1294
|
+
|
1275
1295
|
## Contact
|
1276
1296
|
|
1277
1297
|
If you have a question, [open an Issue](https://github.com/uken/fluent-plugin-elasticsearch/issues).
|
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'fluent-plugin-elasticsearch'
|
6
|
-
s.version = '3.2.
|
6
|
+
s.version = '3.2.1'
|
7
7
|
s.authors = ['diogo', 'pitr']
|
8
8
|
s.email = ['pitr.vern@gmail.com', 'me@diogoterror.com']
|
9
9
|
s.description = %q{Elasticsearch output plugin for Fluent event collector}
|
@@ -173,20 +173,22 @@ EOC
|
|
173
173
|
|
174
174
|
raise Fluent::ConfigError, "'max_retry_putting_template' must be positive number." if @max_retry_putting_template < 0
|
175
175
|
|
176
|
-
if
|
177
|
-
|
178
|
-
|
179
|
-
if @
|
180
|
-
|
176
|
+
if !Fluent::Engine.dry_run_mode
|
177
|
+
if @template_name && @template_file
|
178
|
+
retry_operate(@max_retry_putting_template) do
|
179
|
+
if @customize_template
|
180
|
+
if @rollover_index
|
181
|
+
raise Fluent::ConfigError, "'deflector_alias' must be provided if 'rollover_index' is set true ." if not @deflector_alias
|
182
|
+
end
|
183
|
+
template_custom_install(@template_name, @template_file, @template_overwrite, @customize_template, @index_prefix, @rollover_index, @deflector_alias, @application_name, @index_date_pattern)
|
184
|
+
else
|
185
|
+
template_install(@template_name, @template_file, @template_overwrite)
|
181
186
|
end
|
182
|
-
template_custom_install(@template_name, @template_file, @template_overwrite, @customize_template, @index_prefix, @rollover_index, @deflector_alias, @application_name, @index_date_pattern)
|
183
|
-
else
|
184
|
-
template_install(@template_name, @template_file, @template_overwrite)
|
185
187
|
end
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
188
|
+
elsif @templates
|
189
|
+
retry_operate(@max_retry_putting_template) do
|
190
|
+
templates_hash_install(@templates, @template_overwrite)
|
191
|
+
end
|
190
192
|
end
|
191
193
|
end
|
192
194
|
|
@@ -232,7 +234,7 @@ EOC
|
|
232
234
|
end
|
233
235
|
|
234
236
|
@last_seen_major_version =
|
235
|
-
if @verify_es_version_at_startup
|
237
|
+
if @verify_es_version_at_startup && !Fluent::Engine.dry_run_mode
|
236
238
|
retry_operate(@max_retry_get_es_version) do
|
237
239
|
detect_es_major_version
|
238
240
|
end
|
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: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diogo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-02-
|
12
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|