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!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...