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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...