Splunk Enterprise

regex help required

ra_52194724
Explorer

i want to extract "uicgrupp=120 is lost" in one field after string matching <description": "Process>

 

"description": "Process C5A13 uicgrupp=120 is lost"

 

{"TOOL_Status": "OPEN", "description": "Process C5A13 uicgrupp=120 is lost", "Product_Name": "Application" "ORIGIN_Name": "Openazure","TOOL_Key": "58aa716bb1543", "TOOL_ID": "Openadcgbc"}
{"TOOL_Status": "OPEN", "description": "Process ||0 CG00 uicgrupp=120 is lost", "Product_Name": "Application" "ORIGIN_Name": "Openazure","TOOL_Key": "58xx716bb1543", "TOOL_ID": "Openadcgbc"}

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Can you please copy-paste your whole event into a preformatted paragraph or code block?

It's not obvious what your event looks like.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @ra_52194724 
just used the above two rex and here are the outputs:
pls try this: 

| makeresults
| eval log="{\"TOOL_Status\": \"OPEN\", \"description\": \"Process C5A13 uicgrupp=120 is lost\", \"Product_Name\": \"Application\" \"ORIGIN_Name\": \"Openazure\",\"TOOL_Key\": \"58aa716bb1543\", \"TOOL_ID\": \"Openadcgbc\"}"
| rex field=log "description\": \"Process \S+ (?<uicgroup>[^\"]+)\""
| table log uicgroup

inventsekar_0-1779363952447.png

inventsekar_1-1779363972654.png

 

----------------------------------------------------------------------------------------------
If this post or any post addressed your question, could you pls:
Give it karma to show appreciation

PS - As of May 2026, my Karma Given is 2312 and my Karma Received is 497, lets revamp the Karma Culture!
Thanks and best regards, Sekar
--------------------------------------------------------------------------------------------

 

 

richgalloway
SplunkTrust
SplunkTrust

If the intent is to skip the word following "Process" then this should do it.

description\": \"Process \S+ (?<uicgroup>[^\S]+)
---
If this reply helps you, Karma would be appreciated.

ITWhisperer
SplunkTrust
SplunkTrust

https://regex101.com/r/8BaFP2/1

description\": \"Process (?<uicgroup>[^\"]+)\"

ra_52194724
Explorer

I want to capture only "uicgrupp=120 is lost" into uicgroup group as of now it's capturing "||0 CG00 uicgrupp=120 is lost: where "||0 CG00" information useless for me and should not be included in uicgroup group.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try my revised regex.  It should extract the desired text, assuming there are no embedded spaces.

---
If this reply helps you, Karma would be appreciated.

ITWhisperer
SplunkTrust
SplunkTrust

Try inserting a positive lookahead (assuming "uicgrupp" is the correct spelling and not "uicgroup")

https://regex101.com/r/8BaFP2/2

description\": \"Process .+?(?=uicgrupp)(?<uicgroup>[^\"]+)\"
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...