Splunk Enterprise Security

Extract file hash from field

New Member

I have a field which contains various data, one of the data is the file hash. I would like to extract it to a field.

Tue Jul 15 09:32:03 CET 2019 app=testapp file_hash=aaaaaaaaaaaaaaaa1234567890123456 os=linux

I would like to extract the file_hash: 32 chars only letters and numbers.

Many thanks.

0 Karma


This should do it.

... | rex field=foo "file_hash=(?<file_hash>.{32})" | ...
If this reply helps you, Karma would be appreciated.
0 Karma

New Member

Hi Gyr1991,
I can provide following regex


or just for the letters and numbers:


You can use one of them in the fields-extractor of splunk.

Hope this helps 🙂

Kind Regards,

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...