# What should I do with Logstash when ES is died?

**URL:** <https://discuss.elastic.co/t/what-should-i-do-with-logstash-when-es-is-died/104853>\
**Category:** Logstash\
**Created:** [October 23, 2017, 7:52am UTC](https://discuss.elastic.co/t/what-should-i-do-with-logstash-when-es-is-died/104853 "2017-10-23T07:52:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khanh\_Vo](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Khanh\_Vo](https://discuss.elastic.co/u/Khanh_Vo)\
**Post date:** [October 23, 2017, 7:52am UTC](https://discuss.elastic.co/t/what-should-i-do-with-logstash-when-es-is-died/104853/1 "2017-10-23T07:52:01Z")

</div>

Hi guys,

I'm using Logstash to give logs of Kafka and send to ES but I have a problem that when ES is died, Logstash can't send data to ES, those data will be lost in this time. So what should I do to make sure data isn't lost when ES is died?

Thanks.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 23, 2017, 1:06pm UTC](https://discuss.elastic.co/t/what-should-i-do-with-logstash-when-es-is-died/104853/2 "2017-10-23T13:06:00Z")

</div>

If Logstash can't sent to ES it'll stop consuming messages from Kafka. Why do you think you'd lose anything?

---

<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:** [November 20, 2017, 1:06pm UTC](https://discuss.elastic.co/t/what-should-i-do-with-logstash-when-es-is-died/104853/3 "2017-11-20T13:06:32Z")

</div>

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