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)"