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!

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...