# Logstash connection to Elastic Cloud

**URL:** <https://discuss.elastic.co/t/logstash-connection-to-elastic-cloud/158007>\
**Category:** Logstash\
**Created:** [November 23, 2018, 12:31pm UTC](https://discuss.elastic.co/t/logstash-connection-to-elastic-cloud/158007 "2018-11-23T12:31:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4v3n](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@R4v3n](https://discuss.elastic.co/u/R4v3n)\
**Post date:** [November 23, 2018, 12:31pm UTC](https://discuss.elastic.co/t/logstash-connection-to-elastic-cloud/158007/1 "2018-11-23T12:31:14Z")

</div>

Dear elastic-friends,

Sorry if I don't post in the good place but I cant find any solution to my misconfiguration.

I have a CentOS hosted in the cloud and gather logs from various party  
I would like to use Logstash to send data in my trial ElasticSearch cloud instance.

My local config is working fine but when I try to switch elasticsearch instance from local to the one in elastic cloud, problems are showing up.

When running Logstash on my CentOS I got the following errors message:

```
[2018-11-23T12:17:41,599][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://myurl.aws.found.io:9243/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://myurl1.aws.found.io:9243/][Manticore::ClientProtocolException]myurl:9243 failed to respond"}

Nov 23 12:11:05 CentOS logstash[750]: [2018-11-23T12:11:05,938][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://myurl.aws.found.io:9243/, :path=>"/"}

```

I belive the problem comes from the url using HTTP instead of HTTPS but I have no clue where to change this.

Can you help me understand what am I missing ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 23, 2018, 1:01pm UTC](https://discuss.elastic.co/t/logstash-connection-to-elastic-cloud/158007/2 "2018-11-23T13:01:02Z")

</div>

It would help if you showed your configuration.

---

<div class="post-metadata">

**Author:** ![R4v3n](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@R4v3n](https://discuss.elastic.co/u/R4v3n)\
**Post date:** [November 23, 2018, 1:18pm UTC](https://discuss.elastic.co/t/logstash-connection-to-elastic-cloud/158007/3 "2018-11-23T13:18:11Z")

</div>

NVM I found my mistake.

I was defining the cloud.id and the claud.auth in the logstash.yml instead of the .conf

thank for your swift reply !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 21, 2018, 1:18pm UTC](https://discuss.elastic.co/t/logstash-connection-to-elastic-cloud/158007/4 "2018-12-21T13:18:12Z")

</div>

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