Hi Marius,
We are setting up our Logstash server to send log to our secure Enterprise Elasticsearch server.
However, I encountered some issue and seems like we need to setup the certificate for Logstash to connect ssl with our Enterprise ES server.
Is there anyway to configure logstash to ignore the ssl certificate configuration and run as insecure mode?
Below is the error log for logstash:
[2018-05-07T10:25:59,467][INFO ][logstash.inputs.beats ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5045"}
[2018-05-07T10:25:59,515][INFO ][logstash.inputs.beats ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5043"}
[2018-05-07T10:25:59,685][INFO ][logstash.pipeline ] Pipeline started {"pipeline.id"=>"main"}
[2018-05-07T10:25:59,700][INFO ][org.logstash.beats.Server] Starting server on port: 5043
[2018-05-07T10:25:59,700][INFO ][org.logstash.beats.Server] Starting server on port: 5045
[2018-05-07T10:25:59,704][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]}
[2018-05-07T10:26:03,761][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/, :path=>"/"}
[2018-05-07T10:26:03,795][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
[2018-05-07T10:26:08,804][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/, :path=>"/"}
[2018-05-07T10:26:08,821][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
[2018-05-07T10:26:13,827][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/, :path=>"/"}
[2018-05-07T10:26:13,851][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
[2018-05-07T10:26:18,859][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/, :path=>"/"}
[2018-05-07T10:26:18,871][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://SRBL0SRVIMSSKibana:xxxxxx@d154888bca74484e9097b3893b2018ed.ece.saifg.rbc.com:9243/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
Thanks,
Kayson