

# Creating metric filters
<a name="MonitoringPolicyExamples"></a>

The following procedure and examples show how to create metric filters.

**Topics**
+ [Create a metric filter for a log group](CreateMetricFilterProcedure.md)
+ [Example: Count log events](CountingLogEventsExample.md)
+ [Example: Count occurrences of a term](CountOccurrencesExample.md)
+ [Example: Count HTTP 404 codes](Counting404Responses.md)
+ [Example: Count HTTP 4xx codes](FindCountMetric.md)
+ [Example: Extract fields from an Apache log and assign dimensions](ExtractBytesExample.md)

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon CloudWatch. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query AmazonCloudWatch` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
