Skip to main content

log_groups

Represents a log group.

Overview

Namelog_groups
TypeResource
DescriptionRepresents a log group.
Idaws.cloudwatch.log_groups

Fields

NameDatatypeDescription
log_group_namestringThe name of the log group.
creation_timeintegerThe creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
retention_in_daysinteger

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.

To set a log group so that its log events do not expire, use DeleteRetentionPolicy.

metric_filter_countintegerThe number of metric filters.
arnstringThe Amazon Resource Name (ARN) of the log group.
stored_bytesintegerThe number of bytes stored.
kms_key_idstringThe Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
data_protection_statusstringDisplays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
inherited_propertiesarrayDisplays all the properties that this log group has inherited from account-level settings.
regionstringAWS region.

Methods

NameAccessible byRequired Params
DescribeLogGroupsSELECTregion
CreateLogGroupINSERTdata__logGroupName, region
DeleteLogGroupDELETEdata__logGroupName, region