cw-loggroup-retention-period-check - Amazon Config
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

cw-loggroup-retention-period-check

Checks if Amazon CloudWatch LogGroup retention period is set to specific number of days. The rule is NON_COMPLIANT if the retention period for the log group is less than the MinRetentionTime parameter.

Note

If the retention setting is "Never expire" for a log group, the rule is marked as COMPLIANT.

Identifier: CW_LOGGROUP_RETENTION_PERIOD_CHECK

Trigger type: Periodic

Amazon Web Services Region: All supported Amazon regions except Asia Pacific (Jakarta), Middle East (UAE), Asia Pacific (Osaka) Region

Parameters:

LogGroupNames (Optional)
Type: CSV

A comma-separated list of Log Group names to check the retention period.

MinRetentionTime (Optional)
Type: int

Specify the retention time. Valid values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. The default retention period is 365 days.

Amazon CloudFormation template

To create Amazon Config managed rules with Amazon CloudFormation templates, see Creating Amazon Config Managed Rules With Amazon CloudFormation Templates.