Murmur3 Hash Functions
less than a minute
The Murmur3Hash converters compute the MurmurHash3 hash of a value. Murmur3Hash returns a 32-bit hash, while Murmur3Hash128 returns a 128-bit hash.
Syntax: Murmur3Hash(value) or Murmur3Hash128(value)
- value: the string field to hash
MurmurHash3 provides fast, non-cryptographic hashing suitable for hash tables, data distribution, and checksums.
Input
{
"_type": "log",
"body": {
"test_string": "hello",
"run": 23
},
"resource": {...},
"timestamp": 1727750400000
}
Statement
set(body["murmur3"], Murmur3Hash(body["test_string"]))
set(body["murmur3_128"], Murmur3Hash128(body["test_string"]))
Output
{
"_type": "log",
"body": {
"test_string": "hello",
"murmur3": "3698262018",
"murmur3_128": "316307400",
"run": 23
},
"resource": {...},
"timestamp": 1727750400000
}
The string “hello” was hashed using Murmur3Hash (32-bit) and Murmur3Hash128 (128-bit) algorithms, producing numeric hash values suitable for non-cryptographic use cases.