Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
04-05-2022 05:09 AM
how do I use a regular expression to match a pattern in a logfile - I am using LogFile extension
for example from the following line specific to a "Response" msg
{"remoteHost":"epdg","epoch":1648084954231,"command":"Response","Result-Code",{"value":1001}},"statusCode":"2001","status":"FOO ","timestamp":"2022-03-24 03:22:34.231"}
can I use a regular expression to find statusCode NOT 2001 indicating a failure - If so what regex should I use?
cant seem to find documentation
04-06-2022 11:19 PM
After looking at all possible statusCodes the regex I came up with is :
.*"command":"Response".*"statusCode":"[1|3|4|5].*".*
I am not sure on what to put in the config.yml – any ideas?
- displayName: "Diameter-EAP-Response-Failures"
pattern: "?????"
matchExactString: false
caseSensitive: false
printMatchedString: false
User | Count |
---|---|
7 | |
2 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form