https://github.com/techservicesillinois/terraform-aws-cloudwatch-log-group
Provide CloudWatch log group with default forwarding to Splunk
https://github.com/techservicesillinois/terraform-aws-cloudwatch-log-group
Last synced: 2 months ago
JSON representation
Provide CloudWatch log group with default forwarding to Splunk
- Host: GitHub
- URL: https://github.com/techservicesillinois/terraform-aws-cloudwatch-log-group
- Owner: techservicesillinois
- License: mit
- Created: 2019-02-11T16:58:07.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-07-08T21:35:58.000Z (11 months ago)
- Last Synced: 2025-07-08T22:33:23.528Z (11 months ago)
- Language: HCL
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 10
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudwatch-log-group
[](https://github.com/techservicesillinois/terraform-aws-cloudwatch-log-group/actions)
Provides a CloudWatch Log Group resource. By default a [subscription
filter](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs//Subscriptions.html)
is provided that forwards all of the log group's data to the
[cloudwatch-to-splunk](https://github.com/techservicesillinois/terraform-aws-cloudwatch-to-splunk) lambda function. If the subscription filter is enabled (the default), provide [the three SSM parameter store variables](https://github.com/techservicesillinois/splunk-aws-serverless-apps/tree/master/splunk-cloudwatch-logs-processor) 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.
Argument Reference
-----------------
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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs//FilterAndPatternSyntax.html)
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.
Attributes Reference
--------------------
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.