Splunk Enterprise Security

Extracting SHA256 field

emkaxon
New Member

Hello,

I am trying to extract fields using Splunk field extractor and I reached a point where I got the following error " The extraction failed. If you are extracting multiple fields, try removing one or more fields. Start with extractions that are embedded within longer text strings."

The most common solution found on this forum is to write my own regular expression manually.

This is a sample log from which I need to extract the field "process_sha256":

process_sha256":"fa03997f62beaf057023e5627881ecd4829e3c8383fd44b33f5e30a47ba25e31","processblock_count":0,"regmod_count":3,"segment_id":"1568367814899","start":"2019-09-13T09:41:19.404Z"

Does anyone have an idea what could be the proper regular expression to insert in the field extractor?

Thank you

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try process_sha256":"(?<sha256>[^"]+).

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try process_sha256":"(?<sha256>[^"]+).

---
If this reply helps you, Karma would be appreciated.
0 Karma

emkaxon
New Member

Thank you for the help!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

@emkaxon If your problem is resolved, please accept the answer to help future readers.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...