Hi guys,
I am trying to connect logstash with elasticsearch that has security enabled. While elasticsearch is running well with the SSL Certificates/keys, the same certificates/keys are not working for the Logstash. Following is my configuration and error.
Because without SSL ssl => true, following error is showing.
Nov 27 19:56:25 [localhost] logstash: [2020-11-27T19:56:25,356][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://admin:xxxxxx@localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://admin:xxxxxx@localhost:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
Yes. It was another issue. Actually I am using Open distro for Elasticsearch, so it does not x-pack in it and Logstash was attempting to connect to its /_xpack endpoint. That is why it was failing with 500 error code. So I resolved that issue using this method.
Thank you for your assistance @Badger.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.