# Multiple logstash nodes gathering log by http\_poller prevent duplicates

**URL:** <https://discuss.elastic.co/t/multiple-logstash-nodes-gathering-log-by-http-poller-prevent-duplicates/230568>\
**Category:** Logstash\
**Created:** [April 30, 2020, 1:56pm UTC](https://discuss.elastic.co/t/multiple-logstash-nodes-gathering-log-by-http-poller-prevent-duplicates/230568 "2020-04-30T13:56:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfielt](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mfielt](https://discuss.elastic.co/u/mfielt)\
**Post date:** [April 30, 2020, 1:56pm UTC](https://discuss.elastic.co/t/multiple-logstash-nodes-gathering-log-by-http-poller-prevent-duplicates/230568/1 "2020-04-30T13:56:33Z")

</div>

Hi,

`We are using the ELK stack for a couple of years now and are on version 7.6.2`  
`For the first time we are using the http_poller plugin. Each logstash has the same configuration and therefor the nodes are getting the logs at the same time and duplicate events are created in Elastic.`  
`Is there a neat way to prevent this?`

`Regards, Mark.`

---

<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:** [April 30, 2020, 2:26pm UTC](https://discuss.elastic.co/t/multiple-logstash-nodes-gathering-log-by-http-poller-prevent-duplicates/230568/2 "2020-04-30T14:26:37Z")

</div>

Use a fingerprint filter to set the document\_id option on the elasticsearch output. You still do all of the work twice, but the documents will get overwritten.

---

<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:** [May 28, 2020, 2:26pm UTC](https://discuss.elastic.co/t/multiple-logstash-nodes-gathering-log-by-http-poller-prevent-duplicates/230568/3 "2020-05-28T14:26:42Z")

</div>

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