Amazon CloudWatch Logs
User Guide

Add Query to Dashboard or Export Query Results

After you run a query, you can add the query to a CloudWatch dashboard, or copy the results to the clipboard.

Queries added to dashboards automatically re-run every time you load the dashboard and every time that the dashboard refreshes. These queries count toward your limit of four concurrent CloudWatch Logs Insights queries.

To add query results to a dashboard

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

  2. In the navigation pane, choose Insights.

  3. Choose a log group and run a query.

  4. Choose Add to dashboard.

  5. Select the dashboard, or choose Create new to create a new dashboard for the query results.

  6. Choose Add to dashboard.

To copy query results to the clipboard

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

  2. In the navigation pane, choose Insights.

  3. Choose a log group and run a query.

  4. Choose Actions, Copy query results.