# Hash generation

**URL:** https://discuss.elastic.co/t/hash-generation/87146
**Category:** Logstash
**Created:** [May 25, 2017, 3:09pm UTC](https://discuss.elastic.co/t/hash-generation/87146 "2017-05-25T15:09:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![setshocker](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@setshocker](https://discuss.elastic.co/u/setshocker)
#### Post date: [May 25, 2017, 3:09pm UTC](https://discuss.elastic.co/t/hash-generation/87146/1 "2017-05-25T15:09:00Z")

</div>

Hi everyone,

I would like to know if Logstash has any function that generate a hash of every log that it receives. The main purporse of this is to ensure (in the future) that logs has not been tampered(calculating again the hash and comparing it with the previous).

Thanks, have a good day!

---

<div class="post-metadata">

### Author: ![paz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paz/32/28003_2.png) [@paz](https://discuss.elastic.co/u/paz)
#### Post date: [May 26, 2017, 10:24am UTC](https://discuss.elastic.co/t/hash-generation/87146/2 "2017-05-26T10:24:18Z")

</div>

Hi,

There is the [fingerprint](https://www.elastic.co/guide/en/logstash/5.4/plugins-filters-fingerprint.html) filter that might suit your needs.

Should be pretty straightforward depending on where you want to apply the hash (original message/certain fields) and on whether it needs to be contained inside the actual event itself or not.

---

<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 23, 2017, 10:24am UTC](https://discuss.elastic.co/t/hash-generation/87146/3 "2017-06-23T10:24:25Z")

</div>

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