Cloudwatch Insights

Surfacing errors

Published: Thursday, Nov 17, 2022 Last modified: Sunday, Jan 29, 2023

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