---
isPrivate: true
title: Group Signals into Cases
description: >-
  Add related signals to an existing case instead of opening a new case for each
  signal.
breadcrumbs: >-
  Docs > Datadog Security > Cloud SIEM > Triage and Investigate > Group Signals
  into Cases
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Group Signals into Cases

{% alert level="info" %}
Signal grouping is in Preview.
{% /alert %}

## Overview{% #overview %}

When a [Notification rule](https://docs.datadoghq.com/security/notifications/rules.md) sends security signals to a case project, Datadog creates a case for each signal. If the same detection fires multiple times for the same user or IP address, you get duplicate cases about the same activity.

With signal grouping, Datadog first looks for related signals that are already associated with a case. If it finds one, it adds the new signal to that case instead of creating a new one.

Signal grouping has two parts:

- **Grouping strategies** define when two signals are related to the same activity. You configure grouping strategies once for your organization.
- **Automatic case creation** uses the grouping strategies you configured to decide which case to associate a new signal with.

For example, a detection rule grouped by `@usr.id` fires three times in one hour for the same user. Without grouping, you get three cases. With grouping, you get one case with three signals associated with it.

## Grouping strategies{% #grouping-strategies %}

A grouping strategy defines when signals are related to the same activity.

### Repeated detection{% #repeated-detection %}

By default, Datadog provides the repeated detection strategy, which groups signals that have all of the same:

- Detection rule
- Rule version
- Group-by values (for example, the same `@usr.id` or `@network.client.ip`)

Datadog looks for related signals in a time window, called the lookback, before the new signal. You can set the lookback to 1, 6, 24, or 48 hours. The default is 24 hours.

{% alert level="info" %}

- Repeated detection only applies to Cloud SIEM log detection signals that have group-by values. Signals without group-by values always get their own case.
- A new rule version counts as a different detection, because it can match different conditions. Signals from before and after a rule change are not grouped together.

{% /alert %}

## Turn on signal grouping{% #turn-on-signal-grouping %}

### Permissions{% #permissions %}

| Action                                                | Required permissions                       |
| ----------------------------------------------------- | ------------------------------------------ |
| View grouping strategies                              | `Security Signals Read`                    |
| Change the configuration of a grouping strategy       | `Signal Grouping Strategies Write`         |
| View the strategies used by automatic case creation   | `Cases Read` and `Security Signals Read`   |
| Select the strategies used by automatic case creation | `Cases Write` and `Security Signals Write` |

See [Role Based Access Control](https://docs.datadoghq.com/account_management/rbac.md) for more information.

### Configure a grouping strategy{% #configure-a-grouping-strategy %}

1. In Datadog, go to Security > Settings > Grouping Strategies.
1. Open Repeated detection and select the lookback you want.

### Select strategies for automatic case creation{% #select-strategies-for-automatic-case-creation %}

1. In Datadog, go to the Cloud SIEM [Security cases settings](https://app.datadoghq.com/security/configuration/siem/case-management) page.
1. Select the grouping strategies that automatic case creation uses, and click Save.

{% alert level="info" %}

- If you don't have a grouping strategy selected, automatic case creation creates one case for each signal.
- The selected strategies apply to all case projects in your organization.
- Changes only apply to new signals. Existing cases don't change.

{% /alert %}

## How Datadog picks a case{% #how-datadog-picks-a-case %}

When a new signal is sent to a case project, Datadog:

1. Runs each selected grouping strategy to find related signals.
1. Looks at the cases of those related signals, and keeps the eligible ones. An eligible case:
   - is in the same case project,
   - has the status Open or In Progress,
   - is not archived, deleted, or merged into another case.
1. Adds the new signal to the most recently updated eligible case. If there is none, Datadog creates a new case.

Datadog also adds the related signals that are not yet in an eligible case. Related signals that are already in an eligible case stay where they are.

Datadog follows these rules:

- Closed cases are never reopened. If the only related case is closed, Datadog creates a new case.
- If the new signal is already in an Open or In Progress case, it stays in that case.
- When a case is full, Datadog creates a new rollover case. See Limits.
- Adding a signal does not change the case title, priority, or assignee.
- The [Signal Attachment Settings](https://docs.datadoghq.com/security/cloud_siem/triage_and_investigate/investigate_security_signals.md#manage-default-behavior-for-signals-and-security-cases) still apply to the signals added to a case.

## Limits{% #limits %}

| Limit                           | Value                                                                                                                                         |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Lookback for repeated detection | 1, 6, 24, or 48 hours.                                                                                                                        |
| Related signals per strategy    | Each strategy keeps the 100 most recent related signals it finds in the lookback.                                                             |
| Signals per case                | Signal grouping adds up to 100 signals to a case. When a case is full, Datadog creates a new rollover case for the remaining related signals. |

The limit of signals per case only applies to signal grouping. You can still add more signals to the case in other ways.

## See why a signal was grouped{% #see-why-a-signal-was-grouped %}

Each case that automatic case creation creates or updates has an entry in its timeline. The entry shows the signal that triggered the update, the grouping strategies that ran and what they found, and the result. If a strategy found more related signals than its limit, the entry says so.

The result is one of the following:

| Result                        | Meaning                                                                                                                  |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| No grouping strategy selected | Datadog created one case for the signal.                                                                                 |
| Strategy does not apply       | The signal is missing a value the strategy needs, such as group-by values or a rule version. Datadog created a new case. |
| No related signals found      | No related signal was found in the lookback. Datadog created a new case.                                                 |
| New case with related signals | Related signals were found, but none were in an eligible case. Datadog created a new case and added them.                |
| Existing case updated         | A related signal was in an eligible case. Datadog added the signal to that case.                                         |
| Previous case is full         | The eligible case was full. Datadog created a new rollover case for the remaining related signals found.                 |

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Create cases automatically with Notification Rules](https://docs.datadoghq.com/security/notifications.md#cases)
- [Investigate Security Signals](https://docs.datadoghq.com/security/cloud_siem/triage_and_investigate/investigate_security_signals.md)
- [Case Management settings](https://docs.datadoghq.com/incident_response/work_management/settings.md)
