Amazon CloudWatch Logs
User Guide

Deleting a Metric Filter

A policy is identified by its name and the log group it belongs to.

To delete a metric filter 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 Metric Filter column, click the metric filter you want to delete.

  5. On the Logs Metric Filters screen, in the metric filter, click Delete Filter.

  6. In the Delete Metric filter dialog box, click Yes, Delete.

To delete a metric filter using the AWS CLI

  • At a command prompt, remove the backslashes (\) and type this all on one line:

    % aws logs delete-metric-filter --log-group-name MyApp/access.log \
     --filter-name YourFilterName