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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...