Skip to content

techservicesillinois/terraform-aws-cloudwatch-to-splunk

Repository files navigation

cloudwatch-to-splunk

Terraform actions status

Provides a lambda function that can be used with an arbitrary number of CloudWatch log groups to forward logs to Splunk. Each log group requires a log filter and configuration using AWS Systems Manager Parameter Store (SSM). See the documentation for splunk-aws-serverless-apps for more details.

Example Usage

module "foo" {
  source = "git@github.com:techservicesillinois/terraform-aws-cloudwatch-to-splunk//"
  # NOTE: Normally, callers will NOT specify the function name, except when
  # deploying a test version of the lambda code.
  # name = cloudwatch-to-splunk
}

Argument Reference

The following arguments are supported:

  • name - Name of the lambda function and role to be deployed (default: cloudwatch-to-splunk). NOTE: In general, this should not be overridden by end users.

  • memory_size - Amount of memory in MB for lambda function (default: 512). NOTE: In general, this should not be overridden by end users.

  • retention - Log retention period in days (default: 30 days).

  • runtime - Lambda function's runtime environment. NOTE: This must be a nodejs environment supported by Amazon. See the AWS documentation on Lambda runtime environments.

  • splunk_cache_ttl - Time-to-live value for cached Splunk connection in milliseconds (default: 360000 seconds, which is equal to 6 minutes).

  • ssm_prefix - Prefix string to be applied to look up runtime SSM variables (default: cloudwatch_to_splunk).

Attributes Reference

The following attributes are exported:

  • qualified_arn - The Amazon Resource Name (ARN) identifying your Lambda function version.

About

Provide lambda function to migrate CloudWatch logs to Splunk

Resources

License

Stars

Watchers

Forks

Packages

No packages published