Updated on 2023-11-29 GMT+08:00

Quick Analysis

Monitoring keywords in logs helps you keep track of system performance and services. For example, the number of ERROR keywords indicates the system health, and the number of BUY keywords indicates the sales volume. LTS provides quick analysis for you to obtain statistics on your specified keywords.

Prerequisites

Quick analysis is performed on fields extracted from structured logs. Structure raw logs before you create a quick analysis task.

Creating a Quick Analysis Task

You can enable Quick Analysis for the fields on the Log Structuring page. You can also perform the following steps to create a quick analysis task:

  1. Log in to the LTS console. In the navigation pane on the left, choose Log Management.
  2. A quick analysis is performed on a log stream. Select the target log group and log stream on the Log Management page.
  3. You can create a quick analysis task in either of the following ways:

    1. Click to go to the setting details page. Under Index Fields, enable Quick Analysis when adding a field.
    2. On the Log Structuring tab page, enable Auto Configuration and Analysis. It is enabled by default. This enables structured fields for configuring indexes and quick analysis.

  4. On the Raw Logs tab page, click Set Quick Analysis. On the displayed Index Settings tab page, add fields for quick analysis.
  5. Click OK. The quick analysis task is created.

    Figure 1 Viewing quick analysis results
    • indicates a field of the string type.
    • indicates a field of the float type.
    • indicates a field of the long type.
    • The maximum length of a field for quick analysis is 2000 bytes.
    • The quick analysis field area displays the first 100 records.