# Logstash - What happen if logstash can't contact elasticsearch node

**URL:** <https://discuss.elastic.co/t/logstash-what-happen-if-logstash-cant-contact-elasticsearch-node/222474>\
**Category:** Logstash\
**Created:** [March 6, 2020, 2:36pm UTC](https://discuss.elastic.co/t/logstash-what-happen-if-logstash-cant-contact-elasticsearch-node/222474 "2020-03-06T14:36:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjo](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pjo](https://discuss.elastic.co/u/pjo)\
**Post date:** [March 6, 2020, 2:36pm UTC](https://discuss.elastic.co/t/logstash-what-happen-if-logstash-cant-contact-elasticsearch-node/222474/1 "2020-03-06T14:36:01Z")

</div>

Hello,

I'm new on this product

To test product, i have following setup :

- Filebeat installed on every hosts i need to send/gather logs
- Standalone logstash servers that received logs from filebeats
- Elasticsearch and Kibana on same VM.

What happen if my logstash can't deliver logs to my Elasticsearch Server ? (My ElasticSearch is down for plannned or unplanned reasons).

Is logstash able to keep logs and try to deliver them later to elasticsearch ?  
If yes, could we control queue limit/size ?

Thanks

---

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [March 11, 2020, 3:56pm UTC](https://discuss.elastic.co/t/logstash-what-happen-if-logstash-cant-contact-elasticsearch-node/222474/2 "2020-03-11T15:56:09Z")

</div>

You will want to have a persistent queue configured. This is the queue between inputs and filters/outputs.

[https://www.elastic.co/guide/en/logstash/current/persistent-queues.html](https://www.elastic.co/guide/en/logstash/current/persistent-queues.html)

If the output can't reach Elasticsearch incoming data will be queued to disk up to the configured limits.

---

<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:** [April 8, 2020, 3:56pm UTC](https://discuss.elastic.co/t/logstash-what-happen-if-logstash-cant-contact-elasticsearch-node/222474/3 "2020-04-08T15:56:09Z")

</div>

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