Menu
Amazon CloudWatch Logs
API Reference (API Version 2014-03-28)

MetricTransformation

Indicates how to transform ingested log events into metric data in a CloudWatch metric.

Contents

defaultValue

(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.

Type: Double

Required: No

metricName

The name of the CloudWatch metric.

Type: String

Length Constraints: Maximum length of 255.

Pattern: [^:*$]*

Required: Yes

metricNamespace

The namespace of the CloudWatch metric.

Type: String

Length Constraints: Maximum length of 255.

Pattern: [^:*$]*

Required: Yes

metricValue

The value to publish to the CloudWatch metric when a filter pattern matches a log event.

Type: String

Length Constraints: Maximum length of 100.

Required: Yes