# Hi there, how to prevent lost data when connection lost in streaming data to logstash?

**URL:** <https://discuss.elastic.co/t/hi-there-how-to-prevent-lost-data-when-connection-lost-in-streaming-data-to-logstash/161245>\
**Category:** Logstash\
**Created:** [December 18, 2018, 6:21am UTC](https://discuss.elastic.co/t/hi-there-how-to-prevent-lost-data-when-connection-lost-in-streaming-data-to-logstash/161245 "2018-12-18T06:21:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Post date:** [December 18, 2018, 6:21am UTC](https://discuss.elastic.co/t/hi-there-how-to-prevent-lost-data-when-connection-lost-in-streaming-data-to-logstash/161245/1 "2018-12-18T06:21:54Z")

</div>

hi there,  
how to prevent lost data when connection lost in streaming data to logstash?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 18, 2018, 7:26am UTC](https://discuss.elastic.co/t/hi-there-how-to-prevent-lost-data-when-connection-lost-in-streaming-data-to-logstash/161245/2 "2018-12-18T07:26:22Z")

</div>

If the connection to Logstash is unreliable, the clients sending to it need to be able to queue up data so it can be resent when the connection is restored. Beats are e.g. able in recent versions to [spool to disk](https://www.elastic.co/guide/en/beats/filebeat/6.5/configuring-internal-queue.html) to queue data up in case there is an issue with sending it on.

What does your ingest architecture look like? From where are you collecting data?

---

<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:** [January 15, 2019, 7:26am UTC](https://discuss.elastic.co/t/hi-there-how-to-prevent-lost-data-when-connection-lost-in-streaming-data-to-logstash/161245/3 "2019-01-15T07:26:31Z")

</div>

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