Dynamic threshold alerts

Dynamic thresholds alert when a metric deviates from its recent history for a sustained period.

Static threshold alerts trigger when a metric crosses a fixed value, such as 50 GB. A fixed value has no concept of what is normal for a data source. The same 50 GB can be a critical drop for one source type and a routine weekend dip for another, so static thresholds need frequent tuning and can produce many false positives.

Dynamic thresholds remove that tuning. For each data entity you monitor, Ingest monitoring learns what normal looks like from recent history and triggers an alert when the metric deviates from it for a sustained period. You choose how sensitive the detection is. You don't enter a threshold value.

You can use dynamic threshold alerts with the Data volume, Event count, and High latency alert templates.

How dynamic threshold alerts work

Dynamic threshold alerts use the Cisco Deep Time Series Model (CDTSM), a pretrained time series model that is included with the Splunk AI Toolkit. You don't train the model on your data. Each time an alert runs, the model reads the recent history of the metric and forecasts what the metric should look like. The alert then compares the actual values to that forecast.

The baseline: what normal looks like

A data entity is a unique combination of the fields that you group the alert by, for example index and source type, or index, source type, and host. The model builds a baseline for each data entity separately, so a spike in one source type is judged against that source type's own history and not against other source types.

To build the baseline, the model reads the previous 14 days of the metric for the data entity. This is the history window. It uses the 5-minute summary metrics that Ingest monitoring collects. From this history, the model learns patterns such as trends and daily cycles. It then forecasts the expected value for each point in the detection window, together with a range of likely values. The range of likely values is the normal band.

The model uses the past 14 days of data as the history window. If a data entity has less history, the model uses the history that is available. A longer history gives the model more patterns to learn from and produces a more reliable baseline.

The detection window: what the alert evaluates

Each time the alert runs, it evaluates only the most recent period, called the detection window. The detection window is the same length as the alert schedule.

Alert schedule Detection window
Every 15 minutes The last 15 minutes
Every 30 minutes The last 30 minutes
Every hour The last hour
Every day The last 24 hours

The model learns from the history before the detection window and then scores the points inside it. Each run is independent. The model keeps no information between runs.

Deciding whether a point is unusual

For each point in the detection window, the alert checks whether the actual value falls inside the normal band. A point outside the band is unusual. Which side of the band counts depends on the alert direction that you choose: Above, Below, or Above or below.

Sensitivity controls how wide the normal band is. A wider band flags fewer points. A narrower band flags more.

Sensitivity Effect
Low Detects only significant, sustained deviations from normal. Produces fewer alerts but can miss subtle anomalies.
Medium (default) Balances alert frequency and detection accuracy.
High Detects smaller deviations. Produces more alerts, including some that you might not consider important.

Under the hood, sensitivity sets a value called the multiplier. A lower multiplier gives a narrower band. Changing the sensitivity resets the multiplier and the other advanced settings to the defaults for that sensitivity.

Deciding whether an anomaly is real

A single unusual point does not trigger an alert. A brief spike or dip is common, and alerting on each one creates many alerts that you don't need to act on. Instead, the model tracks anomalies as segments, using four settings:

  • On span is the number of consecutive points that the model looks at when it decides whether an anomaly has started.
  • On ratio is the fraction of those points that must be outside the normal band for an anomaly to start.
  • Off span is the number of consecutive points that the model looks at when it decides whether an anomaly has ended.
  • Off ratio is the fraction of those points that must be back inside the normal band for an anomaly to end.

For example, with the defaults of an on span of 3 and an on ratio of 0.5, an anomaly starts when at least 2 of 3 consecutive points are outside the normal band. With the defaults of an off span of 3 and an off ratio of 1, the anomaly ends only when all 3 consecutive points are back inside the band.

The alert reports the points that belong to an anomaly segment. A larger on span, or a larger on ratio, requires a longer sustained deviation before an alert triggers. A larger off span, or a larger off ratio, keeps the anomaly open through a noisy recovery.

Limits

  • Dynamic thresholds are available on Splunk Cloud Platform only.
  • Dynamic thresholds are available for the Data volume, Event count, and High latency templates. They are not available for the No ingestion and other templates.
  • Dynamic threshold alerts run every 15 minutes, 30 minutes, hour, or day. Four-hour and weekly schedules are not available.
  • The history window is fixed at 14 days.

Known issues

  • With AI Toolkit version 6.2.0 or lower, CDTSM marks the last off_span within normal band as ANOMALOUS. A later AI Toolkit version fixes this issue.