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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...