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!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...