---
type: resource-type
title: LogAlarm
description: aws resource type AWS::CloudWatch::LogAlarm
name: LogAlarm
lexicon: aws
resource_type: AWS::CloudWatch::LogAlarm
---
`AWS::CloudWatch::LogAlarm`, a resource type of the aws lexicon.

## Properties

- `ComparisonOperator` (`string`, required): The arithmetic operation to use when comparing the specified threshold and the query results. Valid values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, and LessThanOrEqualToThreshold.
- `QueryResultsToAlarm` (`number`, required): The number of query results that must be breaching to trigger the alarm.
- `QueryResultsToEvaluate` (`number`, required): The number of query results over which data is compared to the specified threshold.
- `ScheduledQueryConfiguration` (`LogAlarm_ScheduledQueryConfiguration`, required): The scheduled query configuration for the log alarm.
- `Threshold` (`number`, required): The value to compare against the results of the scheduled query evaluation.
- `ActionLogLineCount` (`number`, optional): The number of log lines to include in alarm notifications. Valid values are 0 to 50.
- `ActionLogLineRoleArn` (`string`, optional): The ARN of the IAM role that grants CloudWatch permissions to fetch log lines for alarm notifications. Required when ActionLogLineCount is greater than 0.
- `ActionsEnabled` (`boolean`, optional): Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
- `AlarmActions` (`string[]`, optional): The list of actions to execute when this alarm transitions into an ALARM state from any other state.
- `AlarmDescription` (`string`, optional): The description of the log alarm.
- `AlarmName` (`string`, optional): The name of the log alarm.
- `Arn` (`string`, optional): The ARN of the log alarm.
- `InsufficientDataActions` (`string[]`, optional): The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
- `OKActions` (`string[]`, optional): The actions to execute when this alarm transitions to the OK state from any other state.
- `Tags` (`LogAlarm_Tag[]`, optional): A list of key-value pairs to associate with the log alarm.
- `TreatMissingData` (`string`, optional): Sets how this alarm is to handle missing data points. Valid values are breaching, notBreaching, ignore, and missing.

## Attributes

- `Arn`
