# Duplicaties with Logstash rss plugin

**URL:** <https://discuss.elastic.co/t/duplicaties-with-logstash-rss-plugin/250521>\
**Category:** Logstash\
**Created:** [September 30, 2020, 2:29pm UTC](https://discuss.elastic.co/t/duplicaties-with-logstash-rss-plugin/250521 "2020-09-30T14:29:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [September 30, 2020, 2:29pm UTC](https://discuss.elastic.co/t/duplicaties-with-logstash-rss-plugin/250521/1 "2020-09-30T14:29:54Z")

</div>

Hello,

Currently I am configuring a rss feed with logstash rss plugin.  
This is my logstash pipeline config:

```
input {
        rss {
                url => ""
                interval => 7200
                tags => ["rss"]
  }
}
filter {
        fingerprint {
                source => "title"
  }
}
output {
  elasticsearch {
    hosts => ["http://localhost:9200"]
    index => "rss-feeds"
    user => ""
    password => ""
  }
  stdout{ codec => rubydebug }
}

```

To remove duplicates, I have used fingerprint in the filter section.But unfortunately I have still duplicates.  
I hope somebody have other suggestions to solve this.

Best regards,  
Robin

---

<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:** [September 30, 2020, 3:07pm UTC](https://discuss.elastic.co/t/duplicaties-with-logstash-rss-plugin/250521/2 "2020-09-30T15:07:54Z")

</div>

A fingerprint filter by itself does not eliminate duplicates. It just creates a hash that you can use to eliminate duplicates.

```
filter {
    fingerprint {
        source => "title"
    }
}
output {
    elasticsearch {
        hosts => ["http://localhost:9200"]
        document_id => "%{fingerprint}"
        index => "rss-feeds"
        user => ""
        password => ""
    }
}

```

That way a new version of a document with the same title will overwrite any previous version.

---

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [September 30, 2020, 6:33pm UTC](https://discuss.elastic.co/t/duplicaties-with-logstash-rss-plugin/250521/3 "2020-09-30T18:33:41Z")

</div>

Thanks for your response. I will try it.

---

<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:** [October 28, 2020, 6:33pm UTC](https://discuss.elastic.co/t/duplicaties-with-logstash-rss-plugin/250521/4 "2020-10-28T18:33:41Z")

</div>

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