Listing metric filters - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Listing metric filters

You can list all metric filters in a log group.

To list metric filters using the CloudWatch console
  1. Open the CloudWatch console at

  2. In the navigation pane, choose Log groups.

  3. In the contents pane, in the list of log groups, in the Metric Filters column, choose the number of filters.

    The Log Groups > Filters for screen lists all metric filters associated with the log group.

To list metric filters using the Amazon CLI

At a command prompt, run the following command:

aws logs describe-metric-filters --log-group-name MyApp/access.log

The following is example output:

{ "metricFilters": [ { "filterName": "HTTP404Errors", "metricTransformations": [ { "metricValue": "1", "metricNamespace": "MyNamespace", "metricName": "ApacheNotFoundErrorCount" } ], "creationTime": 1399277571078, "filterPattern": "[ip, id, user, timestamp, request, status_code=404, size]" } ] }