# Hmac hash log integrity check

**URL:** <https://discuss.elastic.co/t/hmac-hash-log-integrity-check/272040>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 4, 2021, 7:29am UTC](https://discuss.elastic.co/t/hmac-hash-log-integrity-check/272040 "2021-05-04T07:29:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![syn](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@syn](https://discuss.elastic.co/u/syn)\
**Post date:** [May 4, 2021, 7:29am UTC](https://discuss.elastic.co/t/hmac-hash-log-integrity-check/272040/1 "2021-05-04T07:29:41Z")

</div>

Hi,

I'm using graylog with filebeats.

each line of log has a hash appended at the end. the hash is supposed to be used for data integrity check.

Is there a way for the filebeats harvester to check and match the log data by hmac hashing?  
e.g. `hash_hmac('sha256', $logdata, $key);`

---

<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 1, 2021, 7:30am UTC](https://discuss.elastic.co/t/hmac-hash-log-integrity-check/272040/2 "2021-06-01T07:30:34Z")

</div>

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