MetricTransformation - Amazon CloudWatch Logs

MetricTransformation

Indicates how to transform ingested log events to 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

A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.

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

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: