Archive
Highlighted

Creating a custom hashing method like md5()

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
Highlighted

Re: Creating a custom hashing method like md5()

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