Versions
OpenSearch version 2.9.0
ES logstash version 8.9.2
logstash-output-opensearch plugin 2.0.2.
Describe the issue:
Unable to connect to OpenSearch, I always get status 401
Verified : User and pwd are correct.
Tried different servers (fresh install), same result.
Configuration:
output {
opensearch {
hosts => [“https://1.2.3.4:9200”]
user => “admin”
password => “somepassword”
index => “logstash-logs-%{+YYYY.MM.dd}”
ssl_certificate_verification => false
}
}
**Relevant Logs **:
credentials are correct, verified with curl
curl https://1.2.3.4:9200 -u admin:somepassword -k
—> returns with data
Log from
[Ruby-0-Thread-9: /usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-output-opensearch-2.0.2-java/lib/logstash/outputs/opensearch/http_client/pool.rb:217] opensearch - Attempted to resurrect connection to dead OpenSearch instance, but got an error {:url=>“https://admin:xxxxxx@1.2.3.4:9200/”, :exception=>LogStash::Outputs::OpenSearch::HttpClient::Pool::BadResponseCodeError, :message=>“Got response code ‘401’ contacting OpenSearch at URL ‘https://1.2.3.4:9200/’”}
Any advise?