Log Service allows you to save query and analysis results as charts to a dashboard. This topic describes how to add a chart (Pro) to a dashboard.

Prerequisites

Limits

You can add a maximum of 50 charts to a dashboard.

Entry point

You can add a chart on a Logstore page or a dashboard page. The configuration items remain unchanged regardless of the entry point that you use. In the following procedure, a chart is added on a dashboard page.

  • Logstore page

    If you want to add a chart on a Logstore page, you must execute a query statement, select a chart, and then save the chart to a dashboard. For more information about how to access a Logstore page, see Query and analyze logs.

    Logstore page
  • Dashboard page
    If you want to add a chart on a dashboard page, you must select a dashboard, select a chart, and then execute a query statement. For more information about how to access a dashboard page, see Create a dashboard. Charts (Pro)

Procedure

You can add only one chart to a dashboard at a time.

  1. Log on to the Log Service console.
  2. Go to the page on which you can create a chart.
    1. In the Projects section, click the name of the project that you want to view.
    2. In the left-side navigation pane, click Dashboard.
    3. In the Dashboard list, click the dashboard to which you want to add a chart.
    4. On the page that appears, click Create Chart.
  3. Add query statements.
    You can add multiple query statements. For more information, see Query and analysis.
  4. Optional:Configure data conversion rules.
    Before you use charts to display the results of query statements, you can configure data conversion rules to process the results. For example, you can configure a rule to merge the results of multiple query statements or classify the results of a query statement. For more information, see Data conversion.
  5. Select the chart (Pro) type.
  6. Optional:Configure chart attributes.
    Log Service automatically configures chart attributes based on the results of your query statements. If the default settings meet your requirements for visualization, you do not need to configure chart attributes.
    1. Configure settings on the Common Settings tab.
      You can configure global settings for the chart on the Common Settings tab. For more information, see Common Settings tab.
    2. Configure settings on the Fields tab.
      You can configure personalized display settings for the results of a single query statement or for a single column of data in the results. For more information, see Fields tab.
  7. Optional:Configure a drill-down event.
    You can configure a drill-down event for the results of a single query statement or for a single column of data in the results to analyze data from a finer-grained dimension. For more information, see Drill-down events.
  8. On the Edit Chart page, click OK.
  9. On the dashboard page, click Save.