# Logstash 7.6.2 cant connect to Elastic in Elastic Cloud

**URL:** <https://discuss.elastic.co/t/logstash-7-6-2-cant-connect-to-elastic-in-elastic-cloud/373584>\
**Category:** Logstash\
**Created:** [January 23, 2025, 2:23pm UTC](https://discuss.elastic.co/t/logstash-7-6-2-cant-connect-to-elastic-in-elastic-cloud/373584 "2025-01-23T14:23:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinay6288](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@Vinay6288](https://discuss.elastic.co/u/Vinay6288)\
**Post date:** [January 23, 2025, 2:23pm UTC](https://discuss.elastic.co/t/logstash-7-6-2-cant-connect-to-elastic-in-elastic-cloud/373584/1 "2025-01-23T14:23:20Z")

</div>

I have Logstash 7.6.2 running in my local & using elasticsearch output plugin to write data to Elastic in Elastic Cloud.

```auto
		elasticsearch {
			hosts => ["https://ELASTIC-CLOUD-DNS:9243"]
			ssl => true 
			ssl_certificate_verification => false
			cacert => "PATH_TO_CA_CERT_IN_PEM_DOWNLOADED_FROM_ELASTIC-CLOUD"
			user => "USERNAME"
			password => "PASSWORD"
			index => "index-%{my-date}"	
		}

```

**Error seen when running Logstash:**

> [logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[https://xxxxxx:xxxxxx@EC-DNS:9243/](https://xxxxxx:xxxxxx@EC-DNS:9243/)", :error\_type=\>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[https://xxxxxx:xxxxxx@EC-DNS:9243/](https://xxxxxx:xxxxxx@EC-DNS:9243/)][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
