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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...