Add query to dashboard or export query results - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.amazonaws.cn/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.amazonaws.cn/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.