Setting up alarms on error logs
We recommend setting up a monitoring system on your ERROR logs to alert
you of consistent failures. You can use Amazon CloudWatch metric filters and alarms to detect
error patterns automatically.
To create an alarm on error logs
-
Create a metric filter on the
/aws/iotmanagedintegrations/EventLoglog group that matches error-level log entries. -
Create a CloudWatch alarm on the metric filter that triggers when the error count exceeds your threshold.
-
Configure an Amazon Simple Notification Service topic as the alarm action to receive notifications.
For detailed instructions, see Using Amazon CloudWatch alarms in the Amazon CloudWatch User Guide.