# Receiving UNEXPECTED POOL ERROR when using Logstash with Elastic Cloud

**URL:** <https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136>\
**Category:** Elasticsearch\
**Created:** [June 2, 2017, 9:42pm UTC](https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136 "2017-06-02T21:42:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)\
**Post date:** [June 2, 2017, 9:42pm UTC](https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136/1 "2017-06-02T21:42:34Z")

</div>

I'm trying to set up my test instance for Elastic Cloud so my team can make a presentation to our management team to help in the decision on whether or not to move to the cloud offering however I am having problems getting my logstash instance to connect to my cloud based Elasticsearch instance.

Here is a typical configuration from my logstash.conf file:  
elasticsearch {  
hosts =\> "[https://8f56ccbee0b8ac7ff5520adc543852de.us-east-1.aws.found.io:9243](https://8f56ccbee0b8ac7ff5520adc543852de.us-east-1.aws.found.io:9243)"  
user =\> "logstash\_ingester"  
password =\> "xxxxxxxxxx"  
index =\> "requestlog-%{+YYYY.MM.dd}"  
document\_type =\> "requestlogs"  
sniffing =\> false  
}

logstash\_ingester is a custom user that I created and assigned it to the Superuser role.

The specific error that I am getting is this  
UNEXPECTED POOL ERROR {:e=\>#\<LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections\>}

followed by these two messages:

- Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>64}

- Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>#\<URI::HTTP:0x7021d8f7 URL:[http://logstash\_system:xxxxxx@localhost:9200/\_xpack/monitoring/?system\_id=logstash&system\_api\_version=2&interval=1s](http://logstash_system:xxxxxx@localhost:9200/_xpack/monitoring/?system_id=logstash&system_api_version=2&interval=1s)\>, :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://logstash\_system:xxxxxx@localhost:9200/](http://logstash_system:xxxxxx@localhost:9200/)][Manticore::SocketException] Connection refused: connect"}

My cluster id is **8f56cc**

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 5, 2017, 9:26am UTC](https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136/2 "2017-06-05T09:26:09Z")

</div>

Can you curl the cluster from the LS host?

---

<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:** [June 5, 2017, 9:39am UTC](https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136/3 "2017-06-05T09:39:18Z")

</div>

> [@byoungman](#):
>
> :error=\>"Elasticsearch Unreachable: [[http://logstash\_system:xxxxxx@localhost:9200/](http://logstash_system:xxxxxx@localhost:9200/)]

Why does your log indicate that your Logstash instance is trying to connect to localhost? Do you have X-Pack installed? How have you set up Logstash? Are you sure it is using the correct config file?

---

<div class="post-metadata">

**Author:** ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)\
**Post date:** [June 5, 2017, 1:22pm UTC](https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136/4 "2017-06-05T13:22:14Z")

</div>

That's what I couldn't figure out but then when you asked about x-pack the light bulb went on. I had installed x-pack for logstash but didn't uninstall it when I signed up for the Cloud trial. So uninstalled and logstash now appears to be working (will know for certain when I can get in Kibana and continue setting things up).

Thanks for the assist.

Bill

---

<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 3, 2017, 1:22pm UTC](https://discuss.elastic.co/t/receiving-unexpected-pool-error-when-using-logstash-with-elastic-cloud/88136/5 "2017-07-03T13:22:35Z")

</div>

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