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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...