Add query to dashboard or export query results - Amazon CloudWatch Logs

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 run every time you load the dashboard and every time that the dashboard refreshes. These queries count toward your limit of 30 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 Logs, and then choose Logs Insights.

  3. Choose one or more log groups and run a query.

  4. Choose Add to dashboard.

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

  6. Select the widget type to use for the query results.

  7. Enter a name for the widget.

  8. Choose Add to dashboard.

To copy query results to the clipboard or download the query results
  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Logs, and then choose Logs Insights.

  3. Choose one or more log groups and run a query.

  4. Choose Export results, and then choose the option you want.