# Could not push logs to Elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/could-not-push-logs-to-elasticsearch-cluster/339488>\
**Category:** Elasticsearch\
**Created:** [July 28, 2023, 4:04am UTC](https://discuss.elastic.co/t/could-not-push-logs-to-elasticsearch-cluster/339488 "2023-07-28T04:04:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas1633](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Vikas1633](https://discuss.elastic.co/u/Vikas1633)\
**Post date:** [July 28, 2023, 4:04am UTC](https://discuss.elastic.co/t/could-not-push-logs-to-elasticsearch-cluster/339488/1 "2023-07-28T04:04:36Z")

</div>

I am facing issue could not push logs to Elasticsearch cluster but when i change the buffer path and restart elastic it gets solved and every odd day I have to do this, looking for some permanent solution over this.

:ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=\>"172.xx.xx.xxx", :port=\>9200, :scheme=\>"http"}): Connection refused - connect(2) for 172.23.12.140:9200 (Errno::ECONNREFUSED)"  
2023-05-24 17:37:03 +0300 [warn]: #0 failed to flush the buffer. retry\_time=1 next\_retry\_seconds=2023-05-24 17:37:04 +0300 chunk="5fc716f94149c5241ea96cc403f6d187" error\_class=Fluent::Plugin::ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=\>"172.xx.xx.xx", :port=\>9200, :scheme=\>"http"}): Connection refused - connect(2) for 172.xx.xx.xxx:9200 (Errno::ECONNREFUSED)"

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 28, 2023, 1:16pm UTC](https://discuss.elastic.co/t/could-not-push-logs-to-elasticsearch-cluster/339488/2 "2023-07-28T13:16:04Z")

</div>

Hi @Vikas1633,

That looks like a connection refused to Elasticsearch. What is the health of your cluster? Can you check using the [cluster health API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html).

---

<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:** [August 25, 2023, 1:17pm UTC](https://discuss.elastic.co/t/could-not-push-logs-to-elasticsearch-cluster/339488/3 "2023-08-25T13:17:04Z")

</div>

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