# Logstash cannot connect tou cloud

**URL:** <https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151>\
**Category:** Logstash\
**Created:** [June 8, 2018, 12:16pm UTC](https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151 "2018-06-08T12:16:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amel](https://discuss.elastic.co/u/amel)\
**Post date:** [June 8, 2018, 12:16pm UTC](https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151/1 "2018-06-08T12:16:56Z")

</div>

Hello

We have a new elastic cloud on [elastic.co](http://elastic.co)  
on my local logstash installation, I want logstash index data into our cloud  
cloud.id: "MYID " # I've putted my ID

cloud.auth: login:password #login and password lof logstash\_sytem user created on the cloud

but when I start logstash, I have the following message

[root@logstash logstash]# /usr/share/logstash/bin/logstash --path.settings=/etc/logstash/  
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N  
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties  
Elasticsearch Unreachable: [[http://localhost:9200/](http://localhost:9200/)][Manticore::SocketException] Connexion refusée (Connection refused)

[root@logstash logstash]# rpm -qa | grep logstash  
logstash-6.2.4-1.noarch

Any help please ?

---

<div class="post-metadata">

**Author:** ![Joshua\_Fenton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_fenton/32/46566_2.png) [@Joshua\_Fenton](https://discuss.elastic.co/u/Joshua_Fenton)\
**Post date:** [June 8, 2018, 6:55pm UTC](https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151/2 "2018-06-08T18:55:07Z")

</div>

what is your output configuration in logstash.conf?

---

<div class="post-metadata">

**Author:** ![amel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amel](https://discuss.elastic.co/u/amel)\
**Post date:** [June 11, 2018, 7:03am UTC](https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151/3 "2018-06-11T07:03:15Z")

</div>

Hello

output {  
if [type] == "SQL\_SERVER\_lock"  
{  
elasticsearch {  
cloud.id: my id  
cloud.auth: login:password

```
   index => "nav11_sql_lock-%{+YYYY.MM.dd}"
  }

```

}

}

thanks

the error is  
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties  
Elasticsearch Unreachable: [[http://localhost:9200/](http://localhost:9200/)][Manticore::SocketException] Connexion refusée (Connection refused)  
No Available connections  
No Available connections  
No Available connections  
No Available connections

---

<div class="post-metadata">

**Author:** ![amel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amel](https://discuss.elastic.co/u/amel)\
**Post date:** [June 11, 2018, 10:22am UTC](https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151/4 "2018-06-11T10:22:01Z")

</div>

Did you have any idea why logstash wants to connect to a local elasticsearch ? even cloud is pecified ?

[2018-06-11T12:18:24,869][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://127.0.0.1:9200/](http://127.0.0.1:9200/), :path=\>"/"}  
[2018-06-11T12:18:24,877][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://127.0.0.1:9200/](http://127.0.0.1:9200/)", :error\_type=\>LogSt  
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://127.0.0.1:9200/](http://127.0.0.1:9200/)][Manticore::SocketException] Connexion refusée (Connection r  
efused)"}  
[2018-06-11T12:18:29,905][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://127.0.0.1:9200/](http://127.0.0.1:9200/), :path=\>"/"}  
[2018-06-11T12:18:29,909][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://127.0.0.1:9200/](http://127.0.0.1:9200/)", :error\_type=\>LogSt  
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://127.0.0.1:9200/](http://127.0.0.1:9200/)][Manticore::SocketException] Connexion refusée (Connection r  
efused)"}  
[2018-06-11T12:18:34,925][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://127.0.0.1:9200/](http://127.0.0.1:9200/), :path=\>"/"}  
[2018-06-11T12:18:34,931][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://127.0.0.1:9200/](http://127.0.0.1:9200/)", :error\_type=\>LogSt  
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://127.0.0.1:9200/](http://127.0.0.1:9200/)][Manticore::SocketException] Connexion refusée (Connection r  
efused)"}  
[2018-06-11T12:18:39,934][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://127.0.0.1:9200/](http://127.0.0.1:9200/), :path=\>"/"}  
[2018-06-11T12:18:39,940][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://127.0.0.1:9200/](http://127.0.0.1:9200/)", :error\_type=\>LogSt  
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://127.0.0.1:9200/](http://127.0.0.1:9200/)][Manticore::SocketException] Connexion refusée (Connection r  
efused)"}  
[2018-06-11T12:18:44,948][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://127.0.0.1:9200/](http://127.0.0.1:9200/), :path=\>"/"}  
[2018-06-11T12:18:44,954][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://127.0.0.1:9200/](http://127.0.0.1:9200/)", :error\_type=\>LogSt  
ash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://127.0.0.1:9200/](http://127.0.0.1:9200/)][Manticore::SocketException] Connexion refusée (Connection r

---

<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:** [July 9, 2018, 10:22am UTC](https://discuss.elastic.co/t/logstash-cannot-connect-tou-cloud/135151/5 "2018-07-09T10:22:01Z")

</div>

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