# Could not add the UUID fingerprint in producer on logstash

**URL:** <https://discuss.elastic.co/t/could-not-add-the-uuid-fingerprint-in-producer-on-logstash/349227>\
**Category:** Logstash\
**Created:** [December 13, 2023, 7:28am UTC](https://discuss.elastic.co/t/could-not-add-the-uuid-fingerprint-in-producer-on-logstash/349227 "2023-12-13T07:28:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeep.kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pradeep.kumar/32/101984_2.png) [@pradeep.kumar](https://discuss.elastic.co/u/pradeep.kumar)\
**Post date:** [December 13, 2023, 7:28am UTC](https://discuss.elastic.co/t/could-not-add-the-uuid-fingerprint-in-producer-on-logstash/349227/1 "2023-12-13T07:28:53Z")

</div>

Hi Team,

Im adding the fingerprint of method UUID to avoid the duplication of the data.  
Im using kafka as producer and Elasticsearch as consumer.

Example pipeline conf looks like this

```auto
input
{
        kafka
         {
                bootstrap_servers => ["xxxxxxx:9093"]
                topics => ["xxxxxx"]
               ......
               .......
        }
}

filter {
  fingerprint {
    target => "generated_id"
    method => "UUID"
  }
}

output {
      elasticsearch {
                hosts => ["https://xxxxxxxxxx:9200"]
                document_id => "%{[generated_id]}"

```

Using this method we are not able to achieve the deduplication of data on the Elasticsearch side.

Can we solve this problem using any other approach?

---

<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:** [December 13, 2023, 5:40pm UTC](https://discuss.elastic.co/t/could-not-add-the-uuid-fingerprint-in-producer-on-logstash/349227/2 "2023-12-13T17:40:34Z")

</div>

> [@pradeep.kumar](#):
>
> Using this method we are not able to achieve the deduplication of data on the Elasticsearch side.
> 
> Can we solve this problem using any other approach?

Yes, use a fingerprint filter but do not use UUID. See the [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-filters-fingerprint.html#_description_137):

> When the `method` option is set to `UUID` the result won’t be a consistent hash but a random [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)

---

<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 10, 2024, 5:41pm UTC](https://discuss.elastic.co/t/could-not-add-the-uuid-fingerprint-in-producer-on-logstash/349227/3 "2024-01-10T17:41:30Z")

</div>

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