Optional ReadonlyapplyOptional ReadonlydefaultThe value to emit if the pattern does not match a particular event.
Optional ReadonlydimensionsThe fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.
Optional ReadonlyfilterThe name of the metric filter.
ReadonlyfilterPattern to search for log events.
ReadonlylogThe log group to create the filter on.
ReadonlymetricThe name of the metric to emit.
ReadonlymetricThe namespace of the metric to emit.
Optional ReadonlymetricThe value to emit for the metric.
Can either be a literal number (typically "1"), or the name of a field in the structure to take the value from the matched event. If you are using a field value, the field value must have been matched using the pattern.
If you want to specify a field from a matched JSON structure, use '$.fieldName', and make sure the field is in the pattern (if only as '$.fieldName = *').
If you want to specify a field from a matched space-delimited structure, use '$fieldName'.
Optional ReadonlyunitThe unit to assign to the metric.
Whether the metric filter is applied on the tranformed logs. This parameter is valid only for log groups that have an active log transformer. If this value is true, the metric filter is applied on the transformed version of the log events instead of the original ingested log events.