aws_metric_filter

account_id

Type: STRING

creation_time

Type: INT64
Provider name: creationTime
Description: The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

filter_name

Type: STRING
Provider name: filterName
Description: The name of the metric filter.

filter_pattern

Type: STRING
Provider name: filterPattern

log_group_name

Type: STRING
Provider name: logGroupName
Description: The name of the log group.

metric_filter_arn

Type: STRING

metric_transformations

Type: UNORDERED_LIST_STRUCT
Provider name: metricTransformations
Description: The metric transformations.

  • default_value
    Type: DOUBLE
    Provider name: defaultValue
    Description: (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
  • dimensions
    Type: MAP_STRING_STRING
    Provider name: dimensions
    Description: The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions. Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric. CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your specified dimensions within a certain amount of time. This helps to prevent accidental high charges. You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.
  • metric_name
    Type: STRING
    Provider name: metricName
    Description: The name of the CloudWatch metric.
  • metric_namespace
    Type: STRING
    Provider name: metricNamespace
    Description: A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
  • metric_value
    Type: STRING
    Provider name: metricValue
    Description: The value to publish to the CloudWatch metric when a filter pattern matches a log event.
  • unit
    Type: STRING
    Provider name: unit
    Description: The unit to assign to the metric. If you omit this, the unit is set as None.

tags

Type: UNORDERED_LIST_STRING