Hi,
We have a use case where we need to raise alerts on http status code 400 when the payload in the response contains the custom error code . Our payload looks like this
{ "errorCode": "ECR-400001", "message": "Bad Request" }
So, whenever there is an ECR-400001 returned to the client I want to raise an alert. Is there a way to do this in Apigee Alerts ?
Cheers,
Neeraj
Hi @Neeraj Agrawal
One approach would be using MessageLogging policy.Based on your condition you can write message on syslog server.Prerequisite to use this approach is you must already have a syslog server available.If not, public log management services, such a Splunk, Sumo Logic, and Loggly, are available. You can use syslog server's in build capabilities to raise Content-Based Alerts.
Regards
Jayesh
you can set alert in your logging application/server.
Else you can set a script over the nginx log. if any 400 error is logged to nginx log, it will trigger a mail.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |