Skip to main content

metric_filter

Gets an individual metric_filter resource

Overview

Namemetric_filter
TypeResource
Descriptionmetric_filter
Idawscc.logs.metric_filter

Fields

NameDatatypeDescription
filter_namestringA name for the metric filter.
filter_patternstringPattern that Logs follows to interpret each entry in a log.
log_group_namestringExisting log group that you want to associate with this filter.
metric_transformationsarrayA collection of information that defines how metric data gets emitted.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
filter_name,
filter_pattern,
log_group_name,
metric_transformations
FROM awscc.logs.metric_filter
WHERE data__Identifier = '<LogGroupName>|<FilterName>';

Permissions

To operate on the metric_filter resource, the following permissions are required:

Read

logs:DescribeMetricFilters

Update

logs:PutMetricFilter,
logs:DescribeMetricFilters

Delete

logs:DeleteMetricFilter