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

Using Visualization to Analyze Logs

Visualization support SQL query and analysis for structured log fields. After log structuring, wait about 1–2 minutes for SQL query and analysis.

Prerequisites

  1. The log stream has been structured. For details, see Log Structuring
  2. The component has been associated with a log group. For details, see Associating an LTS Log Group.

Procedure

  1. Log in to ServiceStage.
  2. Use either of the following methods to go to the Running Logs page.

    • On the Application Management page, click the application to which the component belongs, and click the target component in Component List. Alternatively, right-click the component and go to the component Overview page from the shortcut menu, and choose O&M Configurations > Logs in the left navigation pane.
    • On the Component Management page, click the target component. Alternatively, right-click the component and go to the component Overview page from the shortcut menu, and choose O&M Configurations > Logs in the left navigation pane.

  3. On the Running Logs page, select a log stream from the drop-down list.
  4. Select a time range in the upper right corner.

    • From now: queries log data generated in a time range that ends with the current time, such as the previous 1, 5, or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from now, the charts on the dashboard display the log data that is generated from 18:20:31 to 19:20:31.
    • From last: queries log data generated in a time range that ends with the current time, such as the previous 1 or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from last, the charts on the dashboard display the log data that is generated from 18:00:00 to 19:00:00.
    • Specified: queries log data that is generated in a specified time range.

  5. Click the Visualization tab.
  6. Click the SQL query box and enter the SQL query statement.

    According to the data returned by the SQL query, select a chart type to display the query result. For details, see LTS Visualization.