Splunk Search

Rex syntax to define result data

jsturgeon
New Member

Hello, 
I am looking to clean up the result data from a Splunk query.
How do I remove all the text prior to the user name at the end of the line?

Server1234.prod.outlook.com/Microsoft Exchange Hosted Organizations/MyOrg.onmicrosoft.com/Smith, Joe

I want the results to just return "Smith, Joe"

thoughts?

Labels (1)
Tags (1)
0 Karma

efika
Communicator
| makeresults 1 
| eval _raw="Server1234.prod.outlook.com/Microsoft Exchange Hosted Organizations/MyOrg.onmicrosoft.com/Smith, Joe" 
| rex mode=sed "s/.*\///g" 
| table _raw
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 ...