# Not an int hash when using Murmur3

**URL:** <https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902>\
**Category:** Logstash\
**Created:** [February 7, 2023, 1:12pm UTC](https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902 "2023-02-07T13:12:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![divadpoc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divadpoc/32/97844_2.png) [@divadpoc](https://discuss.elastic.co/u/divadpoc)\
**Post date:** [February 7, 2023, 1:12pm UTC](https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902/1 "2023-02-07T13:12:48Z")

</div>

I've tried the [Fingerprint filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-fingerprint.html#plugins-filters-fingerprint-key) w/ the `MURMUR3` method.

> If set to `MURMUR3` or `MURMUR3_128` the non-cryptographic MurmurHash function (either the 32-bit or 128-bit implementation, respectively) will be used.

So I was expecting an 32-bit integer, but I got back the value `3100258409` for my `source`-field. And this doesn't fit into an integer in Java.

Any idea why?

---

<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:** [February 7, 2023, 6:14pm UTC](https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902/2 "2023-02-07T18:14:50Z")

</div>

> [@divadpoc](#):
>
> So I was expecting an 32-bit integer

I believe you are getting a 32-bit unsigned integer.

---

<div class="post-metadata">

**Author:** ![divadpoc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divadpoc/32/97844_2.png) [@divadpoc](https://discuss.elastic.co/u/divadpoc)\
**Post date:** [February 8, 2023, 7:29am UTC](https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902/3 "2023-02-08T07:29:55Z")

</div>

> [@Badger](#):
>
> I believe you are getting a 32-bit unsigned integer.

makes sense. is there any way to get a signed integer?

---

<div class="post-metadata">

**Author:** ![divadpoc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divadpoc/32/97844_2.png) [@divadpoc](https://discuss.elastic.co/u/divadpoc)\
**Post date:** [February 20, 2023, 3:09pm UTC](https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902/4 "2023-02-20T15:09:12Z")

</div>

I'd like to get the same result on my Java side, so I can get the same result for the same input both with this plugin as well as in my own code.

Thanks for any hints.

---

<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:** [March 20, 2023, 3:09pm UTC](https://discuss.elastic.co/t/not-an-int-hash-when-using-murmur3/324902/5 "2023-03-20T15:09:41Z")

</div>

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