Amazon CloudWatch supports creating alarms from log queries
Amazon CloudWatch now allows creating alarms directly from log queries, eliminating intermediate steps and enabling monitoring and alerting within the log analysis workflow
Amazon CloudWatch has released the ability to create alarms from log queries. This allows you to configure an alarm on a log query and specify the alarm threshold directly, eliminating the need to first create metric filters or custom metrics as intermediate steps. This streamlines the path to actively monitoring the data in your logs and monitoring and alerting on it. For example, you can write a query to count error rates by service, set a threshold, and receive an alarm notification with log context when errors spike-all in a single workflow. Alarms created from log queries support all standard CloudWatch Alarm actions, including Amazon SNS notifications and Amazon EventBridge integrations. This feature is available in all commercial AWS Regions except Middle East (UAE) and Middle East (Bahrain). You can create log query-based alarms using the Amazon CloudWatch console, AWS Command Line Interface (AWS CLI), AWS CloudFormation, and AWS SDKs.