Splunk Search

Splunk rex field extraction issue

dineshCool
New Member

Hi Guys,

I have to extract one field from the below log and i tried this regex in https://rubular.com/ "(?<=^4Nett\s\W\W)(\W.*)$" This regex exactly working what i am looking for.

Status report: "<App name> :: <Status>"
ABC_Service :: Started in 2 sec

but when i try this in splunk it is not giving me the extracted field.

<base query>|rex (?<Application_status><=^4Nett\s\W\W)(\W.*)$

My expected result
Started in 2 sec

Please give me a hint what i am missing here

Tags (2)
0 Karma
1 Solution

renjith_nair
Legend

@dineshCool,

If you have the :: delimiter always in the events try

rex "::\s+(?<Application_Status>.*)"
Happy Splunking!

View solution in original post

0 Karma

renjith_nair
Legend

@dineshCool,

If you have the :: delimiter always in the events try

rex "::\s+(?<Application_Status>.*)"
Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...