Skip to main content
Version: v1.4

AWS CLOUDWATCH-LOG-METRIC-FILTER

Description

Terraform module which creates Cloudwatch resources on AWS

Specification

Properties

NameDescriptionTypeRequiredDefault
create_cloudwatch_log_metric_filterWhether to create the Cloudwatch log metric filterboolfalse
log_group_nameThe name of the log group to associate the metric filter withstringtrue
metric_transformation_default_valueThe value to emit when a filter pattern does not match a log event.stringfalse
metric_transformation_nameThe name of the CloudWatch metric to which the monitored log information should be published (e.g. ErrorCount)stringtrue
metric_transformation_namespaceThe destination namespace of the CloudWatch metric.stringtrue
metric_transformation_valueWhat 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.stringfalse
nameA name for the metric filter.stringtrue
patternA valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.stringtrue
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse