Lesson 27 — Grouping Alerts into Incidents
Your analytics rule has fired six times against the same account during the same investigation window.
Do you really want six separate incidents in the SOC queue?
Incident grouping lets Microsoft Sentinel place related alerts together so analysts investigate the activity as one connected story instead of six disconnected tickets.

What you will learn
Learn how incident settings determine whether related analytics rule alerts become separate incidents or one investigation.
Learning objectives
After completing this lesson, you should understand how alert grouping shapes the incidents analysts receive.
- Explain the difference between events, alerts and incidents.
- Configure a grouping time window.
- Understand the available grouping criteria.
- Use entities and details to keep unrelated activity apart.
- Recognise the risks of grouping too broadly or too narrowly.
The investigation
A scheduled rule runs every few minutes and repeatedly detects suspicious sign-ins for alex@contoso.com.
Six alerts are generated. If each alert becomes its own incident, the SOC may see six tickets for what is really one continuing investigation.
Alerts and incidents are not the same thing
An analytics rule can generate alerts from query results. Those alerts can then become incidents for analysts to investigate.
By default, incident creation is enabled for scheduled analytics rules and each alert generated by the rule creates a separate incident. Alert grouping changes that behaviour by allowing related alerts from the rule to be placed into a single incident.
Do not design only for the moment the detection fires. Design for the incident queue the analyst has to live with afterwards.
From repeated alerts to one investigation
Event grouping is different
Event grouping controls how query results from one rule execution become alerts.
A scheduled rule can group all returned events into one alert or generate an alert for each returned result.
Alert grouping comes afterwards
Alert grouping controls how alerts generated by the analytics rule are placed into incidents.
Think of it as two separate decisions: events → alerts, then alerts → incidents.
The complete flow
Enable incident creation
Scheduled analytics rules can be configured to create incidents from the alerts they generate.
If incident creation is disabled, the rule can still produce alerts, but those alerts will not create incidents through that rule's incident settings.
Enable alert grouping
Under the rule's incident settings, alert grouping can be enabled when you want similar or recurring alerts from the rule placed into a single incident.
The grouping settings then decide which alerts belong together.
The grouping time window
The grouping time frame limits how long new matching alerts can continue to join the same incident.
Microsoft Sentinel uses five hours by default, and the window can be configured from five minutes to seven days.
Option 1 — all entities match
Alerts can be grouped when they share identical values for all mapped entities defined by the analytics rule.
Microsoft identifies this as the recommended grouping option for scheduled analytics rules.
Why entity mapping now matters again
Lesson 25 was not just about making an alert look better.
If incident grouping relies on matching entities, the quality of your account, IP, host and other entity mappings directly affects which alerts Sentinel considers related.
Grouping by matching entities
Option 2 — group every alert from the rule
You can group all alerts triggered by the analytics rule into one incident within the configured grouping window.
This is broad grouping. Alerts do not need matching entities to be placed together.
Broad grouping can hide separation
If one rule detects activity across many unrelated users or hosts, grouping everything together can create a noisy incident containing several unrelated investigations.
The fact that alerts came from the same rule does not automatically mean they belong to the same attack story.
Option 3 — selected entities and details
You can choose selected mapped entities, alert details and custom details as matching criteria.
Alerts are grouped only when the selected values match. At least one entity or detail must be selected when this matching method is used.
| Matching field | Example | Why use it? |
|---|---|---|
| Account entity | alex@contoso.com | Keep activity for the same identity together. |
| IP entity | 203.0.113.25 | Group activity involving the same address. |
| Alert detail | Severity | Separate alerts when a selected alert property differs. |
| Custom detail | Application | Use enrichment created in Lesson 26 as part of the grouping decision. |
Lesson 26 now becomes operational
Custom details are not only useful for displaying investigation context.
Selected custom details can also participate in incident grouping, allowing a value such as application or another rule-specific detail to help determine whether alerts belong together.
Up to 150 alerts per incident
Microsoft Sentinel can group up to 150 alerts into a single incident through these rule settings.
If more than 150 alerts need to be grouped, another incident is created for the excess alerts.
Closed incidents and later alerts
In the Sentinel incident grouping model, a later matching alert can optionally reopen a closed incident rather than creating a new one.
However, this reopen option is not available when Microsoft Sentinel is onboarded to the Microsoft Defender portal.
In the Defender portal, Microsoft Defender's correlation engine is responsible for alert correlation. The analytics rule grouping settings act as initial instructions, but Defender can make correlation decisions beyond those settings.
Common mistake — group everything
A rule fires against twenty unrelated accounts and every alert is grouped simply because it came from the same rule.
The analyst receives one giant incident containing several separate stories.
Common mistake — group nothing
The same account generates repeated related alerts but every alert becomes a separate incident.
The SOC queue grows while analysts repeatedly open what is essentially the same investigation.
Common mistake — poor entity mapping
If your grouping logic depends on entities but the rule maps them poorly, related alerts may not match as expected.
Incident design therefore starts back at the query and entity mapping stages.
Common mistake — window too long
A very long grouping window can keep adding activity to an old investigation when a fresh incident would provide a clearer operational boundary.
Choose the window according to the behaviour being detected, not simply the maximum available setting.
Agent Foskett investigation exercise
Four alerts for alex@contoso.com from 203.0.113.25, followed by three alerts for taylor@contoso.com from 198.51.100.40.
If your objective is to keep each user's activity as a separate investigation, grouping every alert from the rule into one incident would be too broad.
A grouping strategy based on appropriate mapped entities can keep Alex's related alerts together while Taylor's activity forms a separate incident.
Best practices
- Decide what one investigation should represent.
- Separate event grouping from incident alert grouping.
- Use meaningful entity mappings before relying on entity-based grouping.
- Choose a grouping window that matches the behaviour being detected.
- Use selected details when they provide a meaningful investigation boundary.
- Test the incident queue, not only whether the rule fires.
Agent Foskett takeaway
A detection rule is not finished when it creates an alert. The resulting incidents must also make operational sense.
Good grouping turns repeated related alerts into a coherent investigation without accidentally combining unrelated activity.
Related Agent Foskett learning
Continue learning
Grouping Alerts into Incidents in Microsoft Sentinel
Microsoft Sentinel analytics rule incident settings can group related alerts into incidents using configurable time windows, mapped entities, alert details and custom details, helping SOC analysts investigate connected security activity together.
Microsoft Sentinel Lesson 27
This Agent Foskett Microsoft Sentinel Academy lesson explains alert grouping, incident creation, grouping criteria, matching entities, grouping windows, alert limits and practical incident design for scheduled analytics rules.
