Amazon CloudWatch Logs
User Guide

View Running Queries or Query History

You can view the queries currently in progress as well as your recent query history.

Queries currently running includes queries you have added to a dashboard. You are limited to four concurrent CloudWatch Logs Insights queries per account, including queries added to dashboards.

To view the queries that are currently running

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Insights.

  3. Choose Actions, View running queries for this account.

  4. To stop one of the running queries, choose Cancel.

    If this query has been added to a dashboard, choosing Cancel just stops the current execution. If you open the dashboard or the dashboard refreshes, the query is automatically re-run. To permanently remove it from the dashboard, open the dashboard and remove the widget.

To view your recent query history

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Insights.

  3. Choose Actions, View query history for this account.

    A list of your recent queries appears. You can re-run any of them by choosing Run query.