VMware ESXi and vSphere Cluster Management

Splunk Alerts Overview

Learn how Splunk alerts evaluate search results, use scheduled and real-time searches, trigger actions, and reduce duplicate notifications with throttling.

What Is a Splunk Alert?

An alert is a saved search that Splunk executes automatically and evaluates against a configured condition. When the search results satisfy that condition, the alert fires and performs one or more configured actions.

The alert itself does not fire merely because a search returns results. It fires only when the configured trigger condition is satisfied.

The alert lifecycle

  1. Search execution: Splunk runs the saved search, either on a schedule or as events arrive.
  2. Condition evaluation: Splunk examines the search results and tests the configured threshold, result rule, or pattern.
  3. Trigger: If the condition is true, the alert fires.
  4. Action: Splunk sends a notification or performs an automated response.
  5. Optional throttling: Splunk suppresses similar repeated notifications for a configured period.

Historical and Real-Time Searches

The search type determines how Splunk evaluates time and incoming data.

Historical searches

A historical search examines a completed time range, such as the previous 15 minutes, hour, or two hours. Historical searches can run automatically at recurring intervals, making them useful for periodic measurements and scheduled alerts.

For example, a search could examine the previous two hours of web traffic and count HTTP 404 responses. Splunk can run that search every hour and evaluate whether the count has exceeded a defined limit.

Real-time searches

A real-time search evaluates events as they arrive. It can monitor all incoming events or restrict evaluation to a defined rolling window.

Real-time searches are useful when the response must begin soon after an event occurs. A disk-full event, for example, may require immediate attention instead of waiting for the next scheduled search.

Splunk Alert Types

Splunk alert behavior is commonly described as scheduled, per-result, or rolling-window alerting. Select the type according to how urgent the event is and how events relate to one another over time.

Alert typeSearch basisExecution behaviorTime scopeTypical trigger patternExample use case
Scheduled alertHistorical searchRuns repeatedly at specified intervalsA completed range selected for each runA count or measured value reaches a thresholdMore than 50 HTTP 404 responses in two hours
Per-result alertReal-time searchEvaluates incoming results individuallyEach matching event or resultOne matching result is significantA host reports a disk-full error
Rolling-window alertReal-time searchContinuously evaluates a moving time rangeA window such as the latest 10 minutesA count, sequence, or pattern develops within the windowFive failed logins for one user in 10 minutes

Scheduled alerts

A scheduled alert runs a historical search according to a defined schedule. It is appropriate when periodic checkpoints are sufficient and the condition depends on an aggregate over a completed interval.

Use a scheduled alert for a recurring operational metric, such as checking the number of application errors during each two-hour interval. It is also useful when evaluating every incoming event would create unnecessary processing or noise.

Per-result alerts

A per-result alert uses a real-time search and can trigger for individual matching events or results. Use it when each qualifying event deserves prompt attention.

A disk-full message on a production host is a typical example. Waiting for several similar events may delay the response, so each matching result can be actionable on its own.

Rolling-window alerts

A rolling-window alert evaluates events within a continuously moving time interval. As new events arrive, the window advances and older events leave the evaluation range.

This type is useful when individual events are not enough to indicate a problem, but a group of related events within a short period is meaningful. Repeated failed logins are a common example.

Alert Conditions and Triggering Logic

The condition expresses what Splunk should consider significant. A good condition detects an actionable situation rather than every isolated event.

Threshold-based conditions

A threshold is a numeric limit used to determine when a count or measured value is significant. The condition might trigger when a value is greater than, equal to, or greater than or equal to a target.

For example, a web application alert could count HTTP 404 responses and trigger when the count is greater than 50 during a two-hour interval.

Search concept: find web responses with status 404, count them over two hours, and trigger when error_count > 50

The time interval changes the meaning of the threshold. Fifty errors in two hours may indicate a deployment or content problem, while fifty errors in one minute may indicate a much more severe incident.

Trend- and pattern-based conditions

A trend-based condition uses a pattern, sequence, or change in activity instead of one fixed count. Examples include a rapidly increasing error rate, repeated failures for the same account, or a sequence of related firewall events.

Pattern detection usually requires grouping events by a meaningful field, such as user, host, source address, or application. Without grouping, events from unrelated sources may be combined and produce a misleading result.

Search concept: group failed-login events by user, examine a ten-minute moving window, and trigger when the required sequence occurs

Time intervals and event grouping

Two settings strongly affect alert meaning:

  • Time interval: Defines how far back Splunk evaluates activity. A short interval detects bursts; a longer interval detects accumulation.
  • Event grouping: Defines which events belong together, such as all failures for one user, host, source address, or application.

For example, five failed logins across five different users may be normal background activity. Five consecutive failures for one user within ten minutes may indicate a brute-force attempt or an account-access problem. The grouping and window must reflect the situation being detected.

Alert Actions

An alert action is the notification or automated response performed after an alert triggers. Choose an action that matches the operational response required by the detected condition.

Notification actions

A notification action can send an email to an administrator, operations team, or security analyst. The message should identify useful context, such as the host, user, source address, time range, and relevant result details.

Notification is appropriate when a person must investigate, approve, or coordinate the next step.

Automated response actions

An automated response action can run a script or another approved operational process. For example, a response might create a ticket, update an incident system, or begin a predefined remediation workflow.

Automated actions should be carefully controlled. A broad or incorrect condition can cause an automated response to run repeatedly or affect healthy systems.

Basic alert configuration sequence

  1. Define the search that identifies the event or aggregate condition of interest.
  2. Select scheduled historical execution or the appropriate real-time behavior.
  3. Set a result-based, threshold-based, or trend-based trigger condition.
  4. Configure an action such as email notification or script execution.
  5. Configure throttling when similar results could repeatedly qualify during one incident.
  6. Test the search and condition before enabling operational responses.
ElementPurposeExample
SearchFinds events or calculates an aggregateCount HTTP 404 responses
Schedule or real-time modeDetermines when the search is evaluatedRun every hour or evaluate events as they arrive
Trigger conditionDetermines whether results qualify404 count is greater than 50
ActionDefines the response after triggeringSend email or run an approved script
ThrottlingLimits repeated notificationsSuppress equivalent notifications during an incident interval

Alert Throttling

Throttling suppresses repeated alert notifications for similar qualifying events during a configured period. It does not change the alert condition.

The condition answers, “Does this result qualify?” Throttling answers, “Should another notification for an equivalent qualifying result be sent now?”

Throttling is useful during sustained incidents. A disk-full condition may continue to produce messages, or a firewall may continue to report related attack indicators. Without throttling, administrators can receive a large number of duplicate notifications instead of one useful incident signal.

Throttling should be based on the fields that identify an equivalent event, such as host, user, source address, or alert category. A suppression period that is too long can hide meaningful changes; one that is too short may not reduce noise.

Common Monitoring and Security Use Cases

Web application issues

Use a scheduled alert to count elevated HTTP 404 responses over a completed interval. Triggering when more than 50 occur in two hours can identify a broken deployment, missing content, or a client integration problem.

Abandoned shopping-cart activity may also be monitored with a scheduled search when the goal is to identify an unusual aggregate or periodic business trend. If the business response depends on a sequence of events for the same session, use a search and condition that preserve that relationship.

Security events

Repeated failed logins are often best handled with a rolling-window alert. A condition such as five consecutive failures for one user within ten minutes can surface a possible brute-force attempt or an account-access issue without alerting on one isolated failure.

Repeated firewall attack indicators can also use a rolling window. Group related events by an appropriate source or destination and trigger when the activity reaches a suspicious threshold or pattern.

Infrastructure issues

A disk-full event is commonly suited to a per-result alert because each event may require immediate operational response. Server system errors may use per-result alerting when every error is urgent, or scheduled alerting when the objective is to identify an elevated error rate over a checkpoint interval.

Choosing the alert behavior

  • Choose scheduled behavior when periodic evaluation of a completed time range is appropriate.
  • Choose per-result behavior when one incoming event is immediately actionable.
  • Choose rolling-window behavior when several related events must occur within a moving interval.
  • Add throttling when the same ongoing incident could produce duplicate notifications.

Practical Alert Examples

Excessive HTTP 404 errors

Alert type: Scheduled alert.

Logic: Run a recurring historical search and trigger when the number of HTTP 404 responses in a two-hour interval is greater than 50.

Purpose: Identify a possible broken deployment, missing content, or client integration problem.

Disk-full event on a host

Alert type: Per-result alert.

Logic: Monitor real-time events and trigger whenever a disk-full error is reported for a host.

Purpose: Enable immediate operational response to a capacity failure.

Repeated failed user logins

Alert type: Rolling-window alert.

Logic: Monitor a ten-minute moving window and trigger when one user has five consecutive failed login events.

Purpose: Detect a possible brute-force attempt or an account-access issue.

Repeated firewall attack indicators

Alert type: Rolling-window alert.

Logic: Evaluate related firewall events over a defined moving interval and trigger when activity reaches a suspicious pattern or threshold.

Purpose: Surface potentially malicious repeated access attempts without reacting to a single event.

Repeated conditions during an active incident

Alert type: Throttled alert.

Logic: After the alert fires, suppress additional notifications for equivalent qualifying results during a chosen suppression period.

Purpose: Avoid overwhelming administrators with duplicate notifications while preserving the underlying detection rule.

Troubleshooting Alerts

The alert sends too many notifications

Review the throttling configuration and the specificity of the trigger condition. Add or adjust suppression for similar triggering results, and confirm that the search is not so broad that unrelated events qualify.

The repeated-login alert uses the wrong time relationship

Review the alert type and rolling-window duration. Use a rolling-window alert when the requirement depends on several events occurring within a moving interval. Confirm that events are grouped by the intended user or other identity field.

An administrator is not notified

Verify the search results, trigger condition, and configured action separately. Confirm that the search returns the expected events, that the condition can be met by those results, and that the notification action is enabled and addressed correctly.

A periodic metric is evaluated continuously

Review the search execution mode. Use a scheduled alert based on a historical search when the metric should be evaluated at regular checkpoints rather than continuously as events arrive.

Exam-Relevant Notes

  • An alert is a saved search that runs automatically and evaluates a condition against its results.
  • A scheduled alert uses a historical search and recurring execution.
  • A per-result alert uses real-time evaluation and can trigger for individual matching results.
  • A rolling-window alert evaluates events within a continuously moving time range.
  • The trigger condition determines whether an alert qualifies; the action determines what happens afterward.
  • Throttling suppresses repeated notifications and is separate from the trigger condition.
  • Time range and event grouping determine whether a threshold or pattern represents a meaningful situation.

For related study, review Splunk alert concepts and configuration alongside basic search results, time ranges, and real-time monitoring.