# Fingerprint filter- Key from Document

**URL:** <https://discuss.elastic.co/t/fingerprint-filter-key-from-document/131254>\
**Category:** Logstash\
**Created:** [May 10, 2018, 6:09am UTC](https://discuss.elastic.co/t/fingerprint-filter-key-from-document/131254 "2018-05-10T06:09:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [May 10, 2018, 6:09am UTC](https://discuss.elastic.co/t/fingerprint-filter-key-from-document/131254/1 "2018-05-10T06:09:05Z")

</div>

Hi All,

I am using fingerprint filter with SHA256, I want to use key for the plugin dynamically (.i.e based on the document attribute) As shown below group\_id is a document attribute and tenant\_id is the document attribute too. However what i see the the plugin is using key as static string "tenant\_id" rather than dynamic values based on document. Can key take dynamic values like source parametr or its always static

> json{  
> source =\> "message"  
> }  
> fingerprint {  
> source =\> "group\_id"  
> key =\> "tenant\_id"  
> target =\> "[@metadata][fingerprint]"  
> method =\> "SHA256"  
> #base64encode =\> true  
> }

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 16, 2018, 8:22pm UTC](https://discuss.elastic.co/t/fingerprint-filter-key-from-document/131254/2 "2018-05-16T20:22:32Z")

</div>

The key is static.

---

<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, 8:35pm UTC](https://discuss.elastic.co/t/fingerprint-filter-key-from-document/131254/3 "2018-06-13T20:35:45Z")

</div>

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