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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...