Cloudwatch Insights

Surfacing errors

Published: Thursday, Nov 17, 2022 Last modified: Thursday, Dec 8, 2022

Only show the log field that matches “ERROR”

fields @timestamp, @message
| sort @timestamp desc
| filter @message like "ERROR"
| display log

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html#CWL_QuerySyntax-commnds