| Name | Version |
|---|---|
| terraform | >= 1.0 |
| aws | >= 5.0 |
| Name | Version |
|---|---|
| aws | >= 5.0 |
No modules.
| Name | Type |
|---|---|
| aws_cloudwatch_log_metric_filter.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| create_cloudwatch_log_metric_filter | Whether to create the Cloudwatch log metric filter | bool |
true |
no |
| log_group_name | The name of the log group to associate the metric filter with | string |
n/a | yes |
| metric_transformation_default_value | The value to emit when a filter pattern does not match a log event. Conflicts with metric_transformation_dimensions. |
string |
null |
no |
| metric_transformation_dimensions | The additional dimensions to assign to the metric, in the form "name" = "$.value". Conflicts with metric_transformation_default_value. |
map(string) |
{} |
no |
| metric_transformation_name | The name of the CloudWatch metric to which the monitored log information should be published (e.g. ErrorCount) | string |
n/a | yes |
| metric_transformation_namespace | The destination namespace of the CloudWatch metric. | string |
n/a | yes |
| metric_transformation_unit | The unit to assign to the metric. If you omit this, the unit is set as None. | string |
null |
no |
| metric_transformation_value | What to publish to the metric. For example, if you're counting the occurrences of a particular term like 'Error', the value will be '1' for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event. | string |
"1" |
no |
| name | A name for the metric filter. | string |
n/a | yes |
| pattern | A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events. | string |
n/a | yes |
| Name | Description |
|---|---|
| cloudwatch_log_metric_filter_id | The name of the metric filter |