# UNEXPECTED POOL ERROR but logstash is pushing to Elastic perfectly fine?

**URL:** <https://discuss.elastic.co/t/unexpected-pool-error-but-logstash-is-pushing-to-elastic-perfectly-fine/136144>\
**Category:** Logstash\
**Created:** [June 15, 2018, 9:23pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-but-logstash-is-pushing-to-elastic-perfectly-fine/136144 "2018-06-15T21:23:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javadevmtl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javadevmtl/32/45613_2.png) [@javadevmtl](https://discuss.elastic.co/u/javadevmtl)\
**Post date:** [June 15, 2018, 9:23pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-but-logstash-is-pushing-to-elastic-perfectly-fine/136144/1 "2018-06-15T21:23:08Z")

</div>

Hi, running Logstash 6.2.4 in docker container with DC/OS marathon.

I have logstash ingesting logs from Kafka and pushing to my cluster perfectly fine!!! But in the logs I see these every few seconds and it also seems to restore every attempt.

```
[2018-06-15T21:31:48,524][WARN][logstash.outputs.elasticsearch] UNEXPECTED POOL ERROR {:e=>#<LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError: No Available connections>}
[2018-06-15T21:31:48,525][ERROR][logstash.outputs.elasticsearch] 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=>4}
[2018-06-15T21:31:49,768][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://esdev.marathon.l4lb.thisdcos.directory:9200/, :path=>"/"}
[2018-06-15T21:31:49,773][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://esdev.marathon.l4lb.thisdcos.directory:9200/"}
```

---

<div class="post-metadata">

**Author:** ![javadevmtl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javadevmtl/32/45613_2.png) [@javadevmtl](https://discuss.elastic.co/u/javadevmtl)\
**Post date:** [June 15, 2018, 9:41pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-but-logstash-is-pushing-to-elastic-perfectly-fine/136144/2 "2018-06-15T21:41:17Z")

</div>

ok so esdev.marathon.l4lb.thisdcos.directory is a load balanced virtual i.p!

I'm guessing it's changing I.P constantly for logstash. So it think it's lost the connection?

---

<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 13, 2018, 9:51pm UTC](https://discuss.elastic.co/t/unexpected-pool-error-but-logstash-is-pushing-to-elastic-perfectly-fine/136144/3 "2018-07-13T21:51:14Z")

</div>

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