# Fingerprint plugin not working

**URL:** <https://discuss.elastic.co/t/fingerprint-plugin-not-working/132167>\
**Category:** Logstash\
**Created:** [May 16, 2018, 3:40pm UTC](https://discuss.elastic.co/t/fingerprint-plugin-not-working/132167 "2018-05-16T15:40:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)\
**Post date:** [May 16, 2018, 3:40pm UTC](https://discuss.elastic.co/t/fingerprint-plugin-not-working/132167/1 "2018-05-16T15:40:54Z")

</div>

My `filter.conf`

```
filter {

  prune {
     whitelist_names => ["^http_user$"]
   }

   mutate {
     rename => { "http_user" => "username" }
     add_field => ['custom_id', '0']
   }

  fingerprint {
    key => "somekey"
    base64encode => true
    method => "SHA512"
    source => ["http_user"]
    target => "custom_id"
   }

}

```

and my `output.conf`

```
output {

    elasticsearch {
      hosts => ["elasticsearch:9200"]
      index => "my_index_name"
    }

    stdout {
      codec => rubydebug
    }

}

```

In `stdout` all entries are printed (however the `custom_id` remains `0` and that's why only one entry makes it to `elasticsearch`

---

<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:** [May 16, 2018, 3:49pm UTC](https://discuss.elastic.co/t/fingerprint-plugin-not-working/132167/2 "2018-05-16T15:49:50Z")

</div>

You have changed the name of the http\_user field before trying to use it.

---

<div class="post-metadata">

**Author:** ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)\
**Post date:** [May 16, 2018, 4:11pm UTC](https://discuss.elastic.co/t/fingerprint-plugin-not-working/132167/3 "2018-05-16T16:11:17Z")

</div>

thx!

---

<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:** [June 13, 2018, 4:11pm UTC](https://discuss.elastic.co/t/fingerprint-plugin-not-working/132167/4 "2018-06-13T16:11:30Z")

</div>

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