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

Quickly Analyzing Logs

Monitoring keywords in logs helps you trace 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. With AOM quick analysis, your specified keywords can be counted and metric data can be generated for real-time monitoring.

Precautions

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

Creating a Quick Analysis Task

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Log Analysis > Log Stream.
  3. On the Raw Logs page, click Set Quick Analysis, as shown in Figure 1.

    Figure 1 Creating a quick analysis task

  4. On the displayed Set Quick Analysis page, select fields for quick analysis.

    Figure 2 Adding fields

  5. Click OK. The quick analysis task is created.

    Figure 3 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.
    • Click in the upper right corner of the Quick Analysis area to modify or delete an existing field. If you delete a field or modify the name of a field on the Log Structuring page, the field will be updated in the quick analysis.
    • If a structured field does not occur in logs during the specified time range, its occurrence percentage will be displayed as null.