Splunk Search

How can I extract with Regex?

numeroinconnu12
Path Finder

Hello, 

Hope you are well

I want to etract only TP58304 on this line (8)TP58304 (5)endra(3)ttx(5)local(0)

How can i do please? 

Thanks

Labels (3)
Tags (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

this is one option

| rex "\(\d\)(?<name>[^\(]+)\(\d\)"

r. Ismo 

0 Karma
Get Updates on the Splunk Community!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...