Splunk Search

Help with Regex extracting fields

saikumarsplunkt
New Member

Can someone please help with extracting the bold highlighted field from below

/07981368-d226-4cf6-8d88-9853c843bcb9/6311875594

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

At the risk of being too simple given the limited data set, try ... | rex "\/(?<field>[^\/]+)" | ....

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...