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!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

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