Skip to main content

metric_filters_list_only

Lists metric_filters in a region or regions, for all properties use metric_filters

Overview

Namemetric_filters_list_only
TypeResource
DescriptionThe AWS::Logs::MetricFilter resource specifies a metric filter that describes how CWL extracts information from logs and transforms it into Amazon CloudWatch metrics. If you have multiple metric filters that are associated with a log group, all the filters are applied to the log streams in that group.
The maximum number of metric filters that can be associated with a log group is 100.
Idaws.logs.metric_filters_list_only

Fields

NameDatatypeDescription
log_group_namestringThe name of an existing log group that you want to associate with this metric filter.
filter_namestringThe name of the metric filter.
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all metric_filters in a region.

SELECT
region,
log_group_name,
filter_name
FROM aws.logs.metric_filters_list_only
WHERE region = 'us-east-1';

Permissions

For permissions required to operate on the metric_filters_list_only resource, see metric_filters