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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...