Listing metric filters - Amazon CloudWatch Logs
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

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 https://eusc-de-east-1.console.amazonaws-eusc.eu/cloudwatch/.

  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 AWS 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]" } ] }