Cloudwatch Insights

Surfacing errors

Published: Thursday, Nov 17, 2022 Last modified: Wednesday, Oct 2, 2024

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