fluent / helm-charts

Helm Charts for Fluentd and Fluent Bit
Apache License 2.0
366 stars 438 forks source link

[fluentd] Error when try connects to Elastic (ECK) #488

Open weyderfs opened 3 months ago

weyderfs commented 3 months ago

Guys,

I'm having a problem deploying Chart with the following error:

The client is unable to verify that the server is Elasticsearch. Some functionality may not be compatible if the server is running an unsupported product.
2024-04-05 20:02:49 +0000 [error]: #0 unexpected error error_class=Elastic::Transport::Transport::Error error="EOFError (EOFError)"
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/elastic-transport-8.2.2/lib/elastic/transport/transport/base.rb:324:in `rescue in perform_request'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/elastic-transport-8.2.2/lib/elastic/transport/transport/base.rb:285:in `perform_request'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/elastic-transport-8.2.2/lib/elastic/transport/transport/http/faraday.rb:36:in `perform_request'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/elastic-transport-8.2.2/lib/elastic/transport/client.rb:174:in `perform_request'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/elasticsearch-8.8.0/lib/elasticsearch.rb:71:in `method_missing'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/elasticsearch-api-8.8.0/lib/elasticsearch/api/actions/info.rb:41:in `info'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-elasticsearch-5.3.0/lib/fluent/plugin/out_elasticsearch.rb:498:in `detect_es_major_version'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-elasticsearch-5.3.0/lib/fluent/plugin/out_elasticsearch.rb:489:in `block in handle_last_seen_es_major_version'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-elasticsearch-5.3.0/lib/fluent/plugin/elasticsearch_index_template.rb:56:in `retry_operate'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-elasticsearch-5.3.0/lib/fluent/plugin/out_elasticsearch.rb:486:in `handle_last_seen_es_major_version'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-elasticsearch-5.3.0/lib/fluent/plugin/out_elasticsearch.rb:338:in `configure'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluentd-1.16.2/lib/fluent/plugin.rb:187:in `configure'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluentd-1.16.2/lib/fluent/agent.rb:132:in `add_match'
  2024-04-05 20:02:49 +0000 [error]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluentd-1.16.2/lib/fluent/agent.rb:74:in `block in configure'

The configMap:

    # Send the logs to the standard output
    <match **>
      @type elasticsearch
      include_tag_key true
      host "#{ENV['FLUENT_ELASTICSEARCH_HOST']}"
      port "#{ENV['FLUENT_ELASTICSEARCH_PORT']}"
      user "#{ENV['FLUENT_ELASTICSEARCH_USER']}"
      password "#{ENV['FLUENT_ELASTICSEARCH_PASSWORD']}"
      ssl_verify false      
      logstash_format true
    </match>

Has anyone had this problem and managed to resolve it?