Splunk Search

rex extract

jenkinsta
Path Finder

Value session_value containg this info:

not found, name: user@mycompany.com more text here 

Trying to use this:
rex field=session_value ":(?<session_value>)@"

To extract: user

I think I am close, anyone assist? 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Yes, it's close.  regex101.com can tell you that, too.  Try this:

| rex field=session_value ": (?<user>[^@]+)@"
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...