# How multiple logstash nodes read the same file without duplicate data?

**URL:** <https://discuss.elastic.co/t/how-multiple-logstash-nodes-read-the-same-file-without-duplicate-data/308285>\
**Category:** Logstash\
**Created:** [June 27, 2022, 6:08pm UTC](https://discuss.elastic.co/t/how-multiple-logstash-nodes-read-the-same-file-without-duplicate-data/308285 "2022-06-27T18:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thuy\_Le1](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@Thuy\_Le1](https://discuss.elastic.co/u/Thuy_Le1)\
**Post date:** [June 27, 2022, 6:08pm UTC](https://discuss.elastic.co/t/how-multiple-logstash-nodes-read-the-same-file-without-duplicate-data/308285/1 "2022-06-27T18:08:50Z")

</div>

I have multiple files, and multiple logstash nodes.  
how to setup multiple logstash nodes read the same file without duplicate data

---

<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:** [June 27, 2022, 6:41pm UTC](https://discuss.elastic.co/t/how-multiple-logstash-nodes-read-the-same-file-without-duplicate-data/308285/2 "2022-06-27T18:41:07Z")

</div>

You can't. If you are writing to elasticsearch then you can set the document\_id option on the output using a fingerprint filter, so that identical records will overwrite oneanother.

---

<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:** [July 25, 2022, 6:41pm UTC](https://discuss.elastic.co/t/how-multiple-logstash-nodes-read-the-same-file-without-duplicate-data/308285/3 "2022-07-25T18:41:22Z")

</div>

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