Amazon CloudWatch Logs
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

  2. If necessary, change the region. From the navigation bar, select the region that meets your needs. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

  3. In the navigation pane, click Logs.

  4. In the contents pane, in the list of log groups, in the Metric Filters column, click 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, type:

    % aws logs describe-metric-filters --log-group-name MyApp/access.log
        "metricFilters": [
                "filterName": "HTTP404Errors", 
                "metricTransformations": [
                        "metricValue": "1", 
                        "metricNamespace": "YourNamespace", 
                        "metricName": "ApacheNotFoundErrorCount"
                "creationTime": 1399277571078, 
                "filterPattern": "[ip, id, user, timestamp, request, status_code=404, size]"