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.

Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...