Provides a CloudWatch Log Group resource. By default a subscription
filter
is provided that forwards all of the log group's data to the
cloudwatch-to-splunk lambda function. If the subscription filter is enabled (the default), provide the three SSM parameter store variables required by the lambda function. Values for these variables will normally be set in the AWS console. If disable_subscription_filter
is set, these variables are not provided.
The following arguments are supported:
name
- (Required) Log group name.
disable_subscription_filter
- (Optional) Disable default
subscription filter (Default false).
function_name
- (Optional) Name of the lambda function to be
invoked by the filter (Default cloudwatch-to-splunk).
filter_pattern
- (Optional) A valid CloudWatch
filter pattern
for subscribing to a filtered stream of log events (default is .
to match all messages)"
retention
- (Optional) Log retention period in days (Default 30).
tags
- (Optional) A map of tags for the resource.
The following attributes are exported:
arn
- The Amazon Resource Name (ARN) specifying the log group.
lambda_function_arn
- The Amazon Resource Name (ARN) identifying
the Lambda function where log data optinally is forwarded to.