Splunk Enterprise

How to write regex?

Ash1
Communicator

form the below logs i want to capture  "appDesc" data using regex.

 

2023-05-02 22:27:20,100 | info application status https:www.codeurl
[
Response: 200 ok- https:www.codeurl
"appDesc" : "User not within error limit"
{
"appcd" : "0",
"appDesc" : "fraud app dected risk tolerance"
}   ],

 

 

 

2023-05-02 22:27:20,100 | info application status https:www.codeurl
[
Response: 200 ok- https:www.codeurl
"appDesc" : "User not within error limit"
{
"appcd" : "0",
"appDesc" : "fraud app dected risk tolerance"
}   ],

 

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

https://regex101.com/r/2G9G0h/1

appDesc\"\s:\s\"(?<appDesc>[^\"]+)
| rex max_match=0 "appDesc\"\s:\s\"(?<appDesc>[^\"]+)"
Get Updates on the Splunk Community!

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...