Logstash - Could not connect to a compatible version of Elasticsearch

I'm trying to upload a .csv file via logstash to a test version on Cloud V 8.6.1 and I get an error when trying (I'm using logstash version 8.6.1 anyway) and I get the following error:

´```
[2023-02-14T23:21:15,274][ERROR][logstash.javapipeline    ][main] Pipeline error {:pipeline_id=>"main", :exception=>#<LogStash::ConfigurationError: Could not connect to a compatible version of Elasticsearch>, :backtrace=>["C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:245:in `block in healthcheck!'", "org/jruby/RubyHash.java:1519:in `each'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:238:in `healthcheck!'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:370:in `update_urls'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:87:in `update_initial_urls'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:81:in `start'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client.rb:362:in `build_pool'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client.rb:63:in `initialize'", "org/jruby/RubyClass.java:890:in `new'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:106:in `create_http_client'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:102:in `build'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/plugin_mixins/elasticsearch/common.rb:43:in `build_client'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch.rb:301:in `register'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:68:in `register'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:234:in `block in register_plugins'", "org/jruby/RubyArray.java:1865:in `each'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:233:in `register_plugins'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:600:in `maybe_setup_out_plugins'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:246:in `start_workers'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:191:in `run'", "C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:143:in `block in start'"], "pipeline.sources"=>["C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/config/test.conf"], :thread=>"#<Thread:0x7cad85ae@C:/logstash-8.6.1-windows-x86_64/logstash-8.6.1/logstash-core/lib/logstash/java_pipeline.rb:131 run>"}
[2023-02-14T23:21:15,280][INFO ][logstash.javapipeline    ][main] Pipeline terminated {"pipeline.id"=>"main"}
[2023-02-14T23:21:15,291][ERROR][logstash.agent           ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
[2023-02-14T23:21:15,302][INFO ][logstash.runner          ] Logstash shut down.
[2023-02-14T23:21:15,306][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:790) ~[jruby.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:753) ~[jruby.jar:?]
        at C_3a_.logstash_minus_8_dot_6_dot_1_minus_windows_minus_x86_64.logstash_minus_8_dot_6_dot_1.lib.bootstrap.environment.<main>(C:\logstash-8.6.1-windows-x86_64\logstash-8.6.1\lib\bootstrap\environment.rb:91) ~[?:?]


Accesing:

Utilizando el link : https://cec73c1a72034875b43d7ce92210529d.us-central1.gcp.cloud.es.io:9243
User = “<user>”
password = “<password>”


Via Browser works ok,

Thanks for your help

Hi @hnclientes_HN

Simple Fix, That is not the Elasticsearch endpoint that is the Kibana Endpoint, go to the cloud console and get the correct endpoint.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.