Microsoft Defender XDR
Hunting and detection

Advanced hunting overview in Microsoft Defender - Microsoft Defender XDR | Microsoft Learn

In brief

The documented default remains 30 days for native Defender data, while eligible ISOC customers with supported licenses can query supported data for up to 90 days when retention is enabled and available.

What Defender admins need to know

Admins should account for the extended hunting window and note that queries exceeding 30 days show different data-source and processed-data details.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

  • cx-ti
  • cx-ah
  • seo-marvel-apr2020
  • msecd-doc-authoring-10321030 ms.topic: overview ms.date: 2026-11-09T00:00:00.0000000Z ai-usage: ai-assisted

Advanced hunting overview in Microsoft Defender - Microsoft Defender XDR | Microsoft Learn

Advanced hunting is a query-based threat hunting tool that you use to explore up to 30 days of raw Defender data.data, or up to 90 days of supported data with an eligible Integrated Security Operations Center (ISOC) license. When you onboard a Microsoft Sentinel workspace, you can also query analytics-tier data according to the retention configured for the workspace. You can proactively inspect events in your network to locate threat indicators and entities. The flexible access to data enables unconstrained hunting for both known and potential threats.

Advanced hunting supports two modes: guided and advanced. Use guided mode if you're not yet familiar with Kusto Query Language (KQL) or if you prefer the convenience of a query builder. Use advanced mode if you're comfortable using KQL to create queries from scratch.

Quota or parameter Size Refresh cycle Description
Date range Up to 30 days for native Defender data.data, or up to 90 days for supported data with an eligible ISOC license. Microsoft Sentinel table retention depends on the configured analytics-tier retention. Every query EachEligible ISOC customers can query can look up nativesupported Defender data from up to the past 3090 days. When you onboard a Microsoft Sentinel workspace, theThe available date range depends on the data retained for its tablesthe tenant. For Microsoft Sentinel tables, the date range depends on the configured analytics-tier retention.
Result set 100,000 rows Every query Each query can return up to 100,000 records.
Timeout 10 minutes Every query Each query can run for up to 10 minutes. If it doesn't complete within 10 minutes, the service displays an error.
CPU resources Based on tenant size Every 15 minutes The portal displays a warning whenever a query runs and the tenant consumes over 10% of allocated resources. Queries are blocked if the tenant reaches 100% until after the next 15-minute cycle.

Extend data retention

To retainAdvanced hunting supports up to 30 days of native Defender data retention by default. With ISOC, customers who have an eligible Microsoft Defender Suite, Microsoft 365 E5, or Microsoft 365 E7 license receive 90 days of included retention for supported Microsoft Defender data, Azure Activity data, and Office 365 Activity data.

The 90-day retention benefit applies to supported workloads. For the list of included tables, see Tables included with 90-day retention.

When 90-day retention is enabled for your tenant and the required data is available, you can run advanced hunting tables forqueries that look back more than 30 days.

For queries that exceed 30 days, onboard athe query details pane shows:

  • Data sources: Kusto instead of Log Analytics.
  • Age of processed data: The actual duration queried.

For Microsoft Sentinel workspace and configuretables, the tables'available retention period depends on the configured analytics-tier retention. For more information, see Configure table settings in Microsoft Sentinel.

You can also stream Defender data to external services for longer retention. For more information, see: