0

Iam trying to create the custom cloudwatch metric from the Log Groups

I am trying to create the metric pattern for the status of the email. I just need to monitor the the response in email(success/failure)

My cloudwatch logs look like below

 Email status : [EmailStatusResponse{farmId=3846, emailIds='xxx', response='success'}

So, i just need to monitor two cases

response='success'
response='failure'

Please find the below snippet for my configuration enter image description here enter image description here enter image description here

Can anyone pls help me with the error in the filter pattern kindly help!

Please find error message below

Kanagam bala
  • 83
  • 1
  • 9

1 Answers1

0

Wrap this in double quotes.

Metric filter terms that include characters other than alphanumeric or underscore must be placed inside double quotes ("").

For you it would be "response='success'"

Chris Williams
  • 32,215
  • 4
  • 30
  • 68