# If my logstash input is File, do I still need to enable the persistent queue

**URL:** <https://discuss.elastic.co/t/if-my-logstash-input-is-file-do-i-still-need-to-enable-the-persistent-queue/278351>\
**Category:** Logstash\
**Created:** [July 11, 2021, 7:15am UTC](https://discuss.elastic.co/t/if-my-logstash-input-is-file-do-i-still-need-to-enable-the-persistent-queue/278351 "2021-07-11T07:15:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asasas234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asasas234/32/113152_2.png) [@asasas234](https://discuss.elastic.co/u/asasas234)\
**Post date:** [July 11, 2021, 7:15am UTC](https://discuss.elastic.co/t/if-my-logstash-input-is-file-do-i-still-need-to-enable-the-persistent-queue/278351/1 "2021-07-11T07:15:37Z")

</div>

As the question, my Logstash reads data from a file and eventually writes it to elasticsearch, I need to ensure that the data will not be lost, do I need to enable persistent queues? My question is whether I need to enable the persistent queue to save the data to a file, since the source of the input itself is already a file?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 11, 2021, 4:07pm UTC](https://discuss.elastic.co/t/if-my-logstash-input-is-file-do-i-still-need-to-enable-the-persistent-queue/278351/2 "2021-07-11T16:07:18Z")

</div>

> [@asasas234](#):
>
> do I need to enable persistent queues?

Yes. The sincedb is updated when a file input reads data. That does not mean the data has made it to the output, but does mean it will not be re-read.

---

<div class="post-metadata">

**Author:** ![asasas234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asasas234/32/113152_2.png) [@asasas234](https://discuss.elastic.co/u/asasas234)\
**Post date:** [July 12, 2021, 1:22am UTC](https://discuss.elastic.co/t/if-my-logstash-input-is-file-do-i-still-need-to-enable-the-persistent-queue/278351/3 "2021-07-12T01:22:59Z")

</div>

> [@Badger](#):
>
> Yes. The sincedb is updated when a file input reads data. That does not mean the data has made it to the output, but does mean it will not be re-read.

ok,thanks

---

<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 9, 2021, 1:23am UTC](https://discuss.elastic.co/t/if-my-logstash-input-is-file-do-i-still-need-to-enable-the-persistent-queue/278351/4 "2021-08-09T01:23:00Z")

</div>

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