FEATURES PRICING ABOUT DOCS LOGIN

aws_cloudwatch_log_metric_filter

Provides a CloudWatch Log Metric Filter resource.

Example Usage

resource "aws_cloudwatch_log_metric_filter" "yada" {
  name = "MyAppAccessCount"
  pattern = ""
  log_group_name = "${aws_cloudwatch_log_group.dada.name}"

  metric_transformation {
  	name = "EventCount"
  	namespace = "YourNamespace"
  	value = "1"
  }
}

resource "aws_cloudwatch_log_group" "dada" {
	name = "MyApp/access.log"
}

Argument Reference

The following arguments are supported:

The metric_transformation block supports the following arguments:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO