Splunk Enterprise Security

rex fields

lucky
Explorer

 

HI ,

please help to get new field URI by using rex 



/area/label/health/readiness||||||||||METRICS|--

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

this should works

...
| rex "(?<URI>^[^\|]+)"

 I assume that your event is in _raw. If it's already in some field then just add "fields=<your field>" after rex.

https://regex101.com/r/IsMwQy/1

r. Ismo

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Your question is rather vague, but assuming you want the beginning of the _raw event field up to but not including the first | you could try this

| rex "^(?<url>[^\|]+)"
0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

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