I am filtering logs using metric filter. But that filter is not giving exactly what I want.
Please do someone suggest me how I could get the API calls that are failed from the log group and send the response of the failed event as an input to the alarm that is triggered which calls SNS topic which in turn calls Lambda function. Lambda function then receives the SNS message with the response for further processing.
(OR)
Is there any other way to get the failure response from the log group based on any pattern and send the failure response to the lambda function?