Splunk Enterprise

regex to extract fields

shugup2923
Path Finder

My message field look likes below
Message=network share object was checked to see whether client can be granted desired access. Subject: Security ID: EMEA\xxxx.xxxxxx Account Name: xxxx.xxxxxxx Account Domain: EMEA Logon ID: xxxxxxxxxx Network Information: Object Type: File Source Address: xx.xx.xx.xxx Source Port: xxxxx Share Information: Share Name: \*\XX_XX_6_1

I need regex for extracting Security ID, Account Name , Account Domain from this fields,

Tags (1)
0 Karma

jpolvino
Builder

Here is one way to do it:

(your search)
| rex "Security ID: (?<security_id>[\S]+) Account Name: (?<account_name>[\S]+) Account Domain: (?<account_domain>[\S]+)"

See regex101: https://regex101.com/r/IJr8wm/1

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...