metric_filter
Gets an individual metric_filter
resource
Overview
Name | metric_filter |
Type | Resource |
Description | metric_filter |
Id | awscc.logs.metric_filter |
Fields
Name | Datatype | Description |
---|---|---|
filter_name | string | A name for the metric filter. |
filter_pattern | string | Pattern that Logs follows to interpret each entry in a log. |
log_group_name | string | Existing log group that you want to associate with this filter. |
metric_transformations | array | A collection of information that defines how metric data gets emitted. |
region | string | AWS 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