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
- Data is collected. Log Service can collect log, metric, and trace data. For more information, see Log data collection, Metric data collection, and Trace data collection.Important If you want to obtain a chart based on log data and add the chart to a dashboard, you must store logs in a standard Logstore. For more information, see Manage a Logstore.
- If log data is collected, you must configure indexes for the data. For more information, see Create indexes.
- A dashboard is created. For more information, see Create a dashboard.
Limits
You can add a maximum of 200 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.
- Dashboard pageIf 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.
Procedure
You can add multiple charts to a dashboard. You can add a chart to the dashboard at a time.
- Log on to the Log Service console.
- Go to the page on which you can create a chart.
- In the Projects section, click the project that you want to view.
- In the left-side navigation pane, click Dashboard.
- In the Dashboard list, click the dashboard that you want to manage.
- In the upper-right corner of the dashboard page, click Edit.
- In edit mode, choose .
- Add query statements. You can add multiple query statements. For more information, see Query and analysis.
- 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.
- Select the chart (Pro) type.
- 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.
- Optional:Configure an interaction occurrence. You can configure an interaction occurrence 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.
- On the Edit Chart page, click OK.
- On the dashboard page, click Save.