Suppress detection alerts | Elastic Docs

Suppress detection alerts

Serverless Security

When a detection rule runs, it can generate many alerts for similar events—sometimes hundreds of near-identical alerts for the same threat. Alert suppression helps you cut through this noise by grouping related events and creating a single representative alert instead of one alert per event.

Requirements

When to use alert suppression

Alert suppression is useful when:

Alert suppression doesn't ignore events—it groups them. You can still investigate all the original events associated with a suppressed alert.

How alert suppression works

Without suppression, a rule creates one alert for every event that matches its criteria. With suppression enabled:

  1. You specify one or more fields to group events by (for example, host.name or source.ip).
  2. When multiple events share the same field values, they're grouped together.
  3. Instead of creating separate alerts for each event, the rule creates one alert per group.
  4. For some rule types, you can also control how often alerts are created:
    • Per rule execution: A new alert is created each time the rule runs (if matching events exist).
    • Per time period: One alert is created for all matching events within a time window you specify.

Configure alert suppression

You can configure alert suppression when creating or editing a rule.

  1. Choose fields to group by

When configuring the rule (the Define rule step for a new rule, or the Definition tab for an existing rule), specify how you want to group alerts:

In Suppress alerts by, enter one or more field names to group alerts by. Events with the same values for these fields are grouped together.

For ES|QL rules, fields created in the ES|QL query (for example, with the EVAL command) are available to select in Suppress alerts by.

  1. Choose suppression frequency

Choose how often to create alerts for qualifying events:

  1. Handle missing fields

Under If a suppression field is missing, choose how to handle events where one or more suppression fields don't exist:

  1. Save and enable the rule

Configure any other rule settings, then save and enable the rule.

Suppression for fields with an array of values

When you suppress alerts by fields that contain multiple values (arrays), the behavior depends on the rule type:

Rule type Behavior
Custom query or threshold Alerts are grouped by each unique value separately. For example, if destination.ip contains [127.0.0.1, 127.0.0.2, 127.0.0.3], three separate alert groups are created—one for each IP address.
Indicator match, event correlation (non-sequence), new terms, ES QL, or machine learning
Event correlation (sequence queries) Alerts are grouped only if arrays are an exact match and in the same order.

Confirm suppressed alerts

The Elastic Security app shows several indicators when an alert was created with suppression enabled.

Alerts table

Alert details flyout

Open the Insights > Correlations section to see suppression details.

Investigate events for suppressed alerts

Even though suppressed events don't generate their own alerts, you can still access the original events for analysis. Open Timeline with all the events associated with a suppressed alert using one of these methods:

Impact of closing suppressed alerts

By default, closing a suppressed alert while the suppression window is still active resets suppression. The next qualifying event starts a new suppression window and creates a new alert.

Alert suppression limits

Some rule types limit the number of alerts that can be suppressed. Custom query rules have no suppression limit.

Rule type Maximum suppressed alerts
Threshold, event correlation, ES QL, and machine learning
Indicator match and new terms Five times the rule's Max alerts per run setting

Bulk apply or remove alert suppression

You can apply or remove alert suppression from multiple rules at once using the Bulk actions menu in the Rules table.