fluent / fluentd-kubernetes-daemonset

Fluentd daemonset for Kubernetes and it Docker image
Apache License 2.0
1.27k stars 981 forks source link

Update fluent-plugin-elasticsearch to version 5.1.1 #1313

Closed lololozhkin closed 3 years ago

lololozhkin commented 3 years ago

Could you please update the version of fluentd-plugin-elasticsearch to 5.1.1. There was added some functionality to elasticsearch_data_stream out, for example, data_stream_ilm_name, and my team needs this functionality.

It's a pity, but don't know ruby at all. So I'm not able to debug some errors, trying to build my own image using your template. (I attempted to just change the version in Gemfile, but it wasn't really successful)

lololozhkin commented 3 years ago

Thank you for fast reply, but now I have this error message in logs

#0 got unrecoverable error in primary and no secondary error_class=NoMethodError error="undefined method `include?' for :data_stream_name:Symbol"

With stacktrace:

2021-10-27 06:17:42 +0000 [warn]: #0 got unrecoverable error in primary and no secondary error_class=NoMethodError error="undefined method `include?' for :data_stream_name:Symbol"
2021-10-27 06:17:42 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.14.1/lib/fluent/plugin/output.rb:777:in `extract_placeholders'
2021-10-27 06:17:42 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.6.0/gems/fluent-plugin-elasticsearch-5.1.1/lib/fluent/plugin/out_elasticsearch_data_stream.rb:195:in `write'
2021-10-27 06:17:42 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.14.1/lib/fluent/plugin/output.rb:1178:in `try_flush'
2021-10-27 06:17:42 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.14.1/lib/fluent/plugin/output.rb:1490:in `flush_thread_run'
2021-10-27 06:17:42 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.14.1/lib/fluent/plugin/output.rb:498:in `block (2 levels) in start'
2021-10-27 06:17:42 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.14.1/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'

The behavior is the same, as it was, when I just changed version in GemFile