Logstash can't connect to elasticsearch

Hi friends, please your help, we have this message: in log from logstash

[2023-04-14T20:49:18,951][INFO ][logstash.outputs.elasticsearch][rpa_centria_test] Failed to perform request {:message=>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", :exception=>Manticore::ClientProtocolException, :cause=>#<Java::JavaxNetSsl::SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target>}

My .conf is:

input {
  pipeline { address => rpa_centria_test }
}

filter {
   csv {
        separator => ","
        columns => ["fecha","robot","nom_proceso","id_proceso","id_item","componente","aplicacion","paso","tipo","nivel","accion","mensaje","estado"]
   }


        mutate {
                remove_field => ["message","tags"]
        }

}

output {
     elasticsearch {
      hosts => ["https://192.168.0.101:9200"]
      index => "rpa_centria_405123_contabilidad"
      api_key => "SnZ6ZGZJY0IzMjJ0M3hscFpkUjc6RGQ4SFZLakZRZzJPcnNmNEVWcn"
      action => "create"
      ssl => true
   }
}

The error you are seeing is about certificates. You are trying to reach an https endpoint and using ssl => true so it's looking for a cacert setting to know where the path of the certificate is. You could try to set the SSL Verification to false and see if it connects, but in order to fully utilize the security option it needs a certificate.

1 Like

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