Drill-down analysis

Updated at:

Simple Log Service provides a drill-down analysis feature that performs automated and intelligent root cause analysis on multi-dimensional time series data. You can use the results to determine which dimensions or combinations of dimensions are causing an issue, which helps you narrow the scope of troubleshooting. This topic describes the background, features, scheduling and execution scenarios, and usage recommendations for drill-down analysis.

Important

Starting July 15, 2025 (UTC+8), the intelligent anomaly analysis feature will no longer be available to new users. Existing users can continue to use it.

  1. Scope of impact

    The following core features will be unpublished: intelligent health check, text analytics, and time series forecasting.

  2. Feature Migration Solutions

    The machine learning syntax, scheduled query and analysis (scheduled SQL), and dashboard features of SLS can fully replace the unpublished features.

Background information

Services generate various types of time series data during runtime. You can monitor this data for anomalies, such as sudden changes in Key Performance Indicator (KPI) metrics, to detect service issues. This enables prompt fault diagnosis and recovery. Time series data is often an aggregation of data from multiple dimensions. Drill-down analysis performs root cause analysis on this multi-dimensional data. When a monitored metric shows an anomaly, the analysis examines each dimension to identify which dimension or combination of dimensions caused the anomaly. This process helps O&M engineers quickly find the root cause of service issues.

For example, time series data for website traffic can be divided by different dimensions. If you divide the data by user city, you obtain traffic data for Shanghai, Beijing, and so on. If you divide the data by access channel, you obtain traffic data from mobile devices and PCs. A network traffic anomaly might be caused by a data center failure in one city. It could also be caused by a display error on a webpage for a specific channel. It might even be caused by a webpage for a specific channel in a specific city that was not updated promptly.

Function introduction

A drill-down analysis job accepts the following two types of time series data. Both types are extracted or aggregated using SQL statements.

  • Event time series data: The drill-down analysis job observes event time series data to check for anomalies. If an anomaly occurs, the job immediately triggers a drill-down analysis of multi-dimensional metrics to determine the root cause.

  • Multi-dimensional metric time series data: The drill-down analysis job reads the time series metrics for each dimension. When an anomaly is observed, the job detects which dimensions have metrics that deviate significantly from their expected values. These dimensions are then considered candidate root causes for the anomaly.

The drill-down analysis results are written to the destination Logstore (internal-ml-log). The results are also visualized on a dashboard to help you quickly view the root cause analysis. The overall process is shown in the following figure.

image

Terms

The following table describes the basic concepts of drill-down analysis in Simple Log Service.

Term

Description

Job

A drill-down analysis job.

Instance

A drill-down analysis job generates execution instances based on its configuration. Each instance periodically pulls data, runs the algorithm model, and generates drill-down analysis results according to the job configuration. For more information about how different operations affect instance scheduling and execution, see Scheduling and execution scenarios.

  • A job can generate one or more instances. However, only one instance can run at a time, whether it is scheduled normally or you trigger a retry for a failed instance. Concurrent execution of multiple instances is not supported.

  • Hot upgrades for parameters are not currently supported. When you modify the job configuration, the intelligent health check job creates a new instance to run the algorithm model. This new instance is independent of previous instances.

Instance ID

The unique identifier of an execution instance.

Creation time

The time when the instance was created. Instances are typically generated based on the job rules you configure. An instance is generated immediately for a backfill run or to catch up on delays.

Execution time

The time when the instance started to run. If the job is retried, this indicates the start time of the last execution.

End time

The time when the instance finished running. If the instance is retried, this indicates the end time of the last execution.

Execution status

The execution status of the instance. Valid values:

  • RUNNING

  • Retrying

  • SUCCEEDED

  • FAILED

Data configuration

The data configuration includes parameters such as query and analysis statements, time, dimensions, and metrics. For more information, see Create a job.

Algorithm configuration

The algorithm configuration includes parameters such as observation length, confidence level, and time range. For more information, see Algorithm description.

Drill-down analysis result

The drill-down analysis results are displayed on a built-in dashboard.

Scheduling and execution scenarios

A job can generate one or more instances. Only one instance can run at a time, regardless of whether it runs on a normal schedule or you trigger a retry for a failed instance. Concurrent execution of multiple instances is not supported.

The main scheduling and execution scenarios are described in the following table.

Scenario

Description

Scenario 1: Start a drill-down analysis job from the current time

You can start a job from the current time. The job reads historical data based on the configured observation length and then performs a drill-down analysis on the time series data for a subsequent period.

Scenario 2: Start a drill-down analysis job from a historical point in time

After you create a drill-down analysis job to start at a specified historical point in time, the job processes historical data according to the job rules. The algorithm model quickly consumes the historical data and gradually catches up to the current time.

Scenario 3: Modify the scheduling configuration

After you modify the scheduling configuration, the next instance is generated based on the new configuration. The algorithm model remembers the time up to which it has processed data and continues to analyze new data from that point.

Scenario 4: Retry a failed instance

If an instance fails due to issues such as insufficient permissions, a non-existent source database, a non-existent destination database, or an invalid configuration, the system automatically retries the instance. If the instance status remains in the starting state for a long time, this may indicate a configuration failure. Error logs are sent to your internal-etl-log Logstore. In this case, you must check the configuration and start the job again. After the scheduled execution is complete, the system changes the instance status to Succeeded or Failed based on the execution result.

Usage recommendations

When you use the drill-down analysis feature, divide time series metrics into dimensions based on your business scenario to achieve fast and accurate root cause analysis. Keep the following points in mind:

  • Ensure that the observed anomalies are related to the multi-dimensional metrics that you are analyzing. An anomaly in a multi-dimensional metric should be a potential cause of the observed event.

  • Divide the data into reasonable dimensions. The dimensions for the multi-dimensional metrics should be as independent as possible. Each dimension should not have an excessive number of candidate values.

  • In the SQL statement that is used to extract multi-dimensional metric time series data, aggregate the data at an appropriate granularity, such as 5 minutes or 10 minutes.