Attempted to resurrect connection to dead ES instance

Hello folks,

[INFO ] 2022-11-09 16:05:14.964 [Ruby-0-Thread-9: :1] elasticsearch - 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>}
[WARN ] 2022-11-09 16:05:14.965 [Ruby-0-Thread-9: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error {:url=>"https://elastic:xxxxxx@18.139.158.62:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [https://18.139.158.62:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
^C[WARN ] 2022-11-09 16:05:19.619 [SIGINT handler] runner - SIGINT received. Shutting down.
[INFO ] 2022-11-09 16:05:20.002 [Ruby-0-Thread-9: :1] elasticsearch - 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>}
[WARN ] 2022-11-09 16:05:20.003 [Ruby-0-Thread-9: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error {:url=>"https://elastic:xxxxxx@18.139.158.62:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [https://18.139.158.62:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
^C[FATAL] 2022-11-09 16:05:21.027 [SIGINT handler] runner - SIGINT received. Terminating immediately..
[FATAL] 2022-11-09 16:05:21.057 [LogStash::Runner] Logstash - 

In my logstash machine, I can receive the logs from filebeats but can not connect to Elastic Search.

The logs there show Logstash being shut down, not a connection issue.

You may want to show more logs and your config.

There is something wrong with cert(s)