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!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...