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 Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...