Class: MetricFilter

Logs.MetricFilter

new MetricFilter()

Properties:
Name Type Description
FilterPattern String Required: Yes. Describes the pattern that CloudWatch Logs follows to interpret each entry in a log. For example, a log entry might contain fields such as timestamps, IP addresses, error codes, bytes transferred, and so on. You use the pattern to specify those fields and to specify what to look for in the log file. For example, if you're interested in error codes that begin with 1234, your filter pattern might be [timestamps, ip_addresses, error_codes = 1234*, size, ...].Update requires: No interruption
LogGroupName String Required: Yes. The name of an existing log group that you want to associate with this metric filter.Update requires: Replacement
MetricTransformations CloudWatchLogsMetricFilterMetricTransformationProperty Required: Yes. Describes how to transform data from a log into a CloudWatch metric.ImportantCurrently, you can specify only one metric transformation for each metric filter. If you want to specify multiple metric transformations, you must specify multiple metric filters.Update requires: No interruption
Source:

Extends

  • WKResource

Logs.MetricFilter

new MetricFilter()

Properties:
Name Type Description
FilterPattern String Required: Yes. Describes the pattern that CloudWatch Logs follows to interpret each entry in a log. For example, a log entry might contain fields such as timestamps, IP addresses, error codes, bytes transferred, and so on. You use the pattern to specify those fields and to specify what to look for in the log file. For example, if you're interested in error codes that begin with 1234, your filter pattern might be [timestamps, ip_addresses, error_codes = 1234*, size, ...].Update requires: No interruption
LogGroupName String Required: Yes. The name of an existing log group that you want to associate with this metric filter.Update requires: Replacement
MetricTransformations CloudWatchLogsMetricFilterMetricTransformationProperty Required: Yes. Describes how to transform data from a log into a CloudWatch metric.ImportantCurrently, you can specify only one metric transformation for each metric filter. If you want to specify multiple metric transformations, you must specify multiple metric filters.Update requires: No interruption
Source:

Extends

  • WKResource