Splunk Search

Creating a custom hashing method like md5()

zuzgon2
Engager

Hey,
I wondered if there's a way to create or add a custom method like md5(value)
like crc32? Sha1?
and if so how ?

Thanks.!

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You could create a custom Python search command that gets passed a field to hash and a field name to output the hash. That'll retrieve the results, perform the hashing for the given field, and return the results. Wouldn't be an eval function, but should work reasonably well.

Once you're done you could share the hashing commands on Splunk Apps... provided those don't exist yet.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You could create a custom Python search command that gets passed a field to hash and a field name to output the hash. That'll retrieve the results, perform the hashing for the given field, and return the results. Wouldn't be an eval function, but should work reasonably well.

Once you're done you could share the hashing commands on Splunk Apps... provided those don't exist yet.

View solution in original post

.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!