Updated on 2024-05-27 GMT+08:00

Adding Charts

LTS saves query and analysis results to a dashboard in the form of charts.

Prerequisites

  • Logs have been collected.
  • A dashboard has been created.

Restrictions

  • Up to 100 charts can be created for a log stream.
  • Up to 50 charts can be added for a dashboard.

Creating a Chart for a Dashboard

  1. Log in to the LTS console. In the left navigation pane, choose Dashboards.
  2. In the lower part of the dashboard directory, select a dashboard group and click the name of the target dashboard to access its details page.
  3. Click and select a log stream. Then click Create Chart.
  4. Set parameters by referring to Table 1 and click OK.

    Table 1 Creating a chart

    Parameter

    Description

    Chart Name

    Name of a chart. It must meet the following requirements:

    • Use only letters, numbers, hyphens (-), underscores (_), spaces, brackets, and periods (.). Do not start or end with a period or space.
    • Can contain 1 to 64 characters.

    SQL Statement

    • The default statement is SELECT *, which is used to query structured log data in the log stream.
    • For details about SQL statements, see Cloud Structuring Parsing.

    Chart Type

    LTS provides multiple types of charts, such as tables, and bar and line charts.

    Add to Dashboard

    • If you enable Add to Dashboard and select one or more dashboards, the charts will be added to the dashboards.
    • If you disable Add to Dashboard, the chart will not be displayed on any dashboard.

  5. On the chart editing page, set the parameters by referring to Visualization and click OK in the upper right corner. The chart will be displayed on the dashboard.