I’m trying to send data to Opensearch with logstash.
I installed Opensearch 2.3.0-1 and logstash-oss-with-opensearch-output-plugin-7.16.2 .
I configured logstash to send data to opensearch with HTTPS but I receive in logs the following error:
"
[ERROR][logstash.javapipeline ][main] Pipeline error {:pipeline_id=>“main”, :exception=>#<LogStash::ConfigurationError: Could not connect to a compatible version of Elasticsearch>, :backtrace=>[“/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:247:in `block in healthcheck!'”, “org/jruby/RubyHash.java:1415:in `each’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:240:in `healthcheck!'”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:374:in `update_urls’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:89:in `update_initial_urls’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:83:in `start’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:359:in `build_pool’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:63:in `initialize’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:106:in `create_http_client’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:102:in `build’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/plugin_mixins/elasticsearch/common.rb:34:in `build_client’”, “/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.2.3-java/lib/logstash/outputs/elasticsearch.rb:275:in `register’”, “org/logstash/config/ir/compiler/OutputStrategyExt.java:131:in `register’”, “org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:68:in `register’”, “/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:232:in `block in register_plugins’”, “org/jruby/RubyArray.java:1821:in `each’”, “/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:231:in `register_plugins’”, “/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:589:in `maybe_setup_out_plugins’”, “/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:244:in `start_workers’”, “/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:189:in `run’”, “/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:141:in `block in start’”], “pipeline.sources”=>[“/etc/logstash/conf.d/filebeat.conf”, “/etc/logstash/conf.d/logstash.conf”, “/etc/logstash/conf.d/syslog.conf”, “/etc/logstash/conf.d/winlogbeat.conf”], :thread=>“#<Thread:0x11f827f8 run>”}
"
Looking to documentation (Agents and ingestion tools - OpenSearch documentation) it seems that logstash 7.16.2 should be compatible with Opensearch 2.x.
Any idea?