Sentinel Hunting & Data Lake
Hunting queries · hunts and bookmarks · KQL jobs in the data lake · summary rules · notebooks and the Sentinel MCP server
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Hunting queries, bookmarks and hunts
- Open Microsoft Sentinel > Threat management > Hunting, then the Queries tab. It lists queries installed with Content hub solutions plus any query you created or modified.
- Results delta and Results delta percentage compare the last 24 hours with the previous 24-48 hours. N/A in the Results filter shows queries that aren't active because data sources are missing.
- Queries saved to favorites run automatically each time the Hunting page is opened.
- Clone a custom or built-in query to edit a copy. Only queries from a custom content source can be edited in place; other sources must be edited where they were created. When you define a query you create entity mappings and MITRE ATT&CK mappings.
- Bookmarks keep result rows with their query, tags and notes, and default to the query's entity and MITRE mappings. You can create an incident from bookmarks or add them to an existing one. Query them in the
HuntingBookmarktable. Bookmarks aren't available in Advanced hunting. - A valuable query can become an analytics rule: from the results select New alert rule > Create Microsoft Sentinel alert and use the Analytics rule wizard.
- Run threat-hunting queries for the data you ingest at least once a week.
- Livestreams are no longer available. Use KQL jobs, analytics rules or playbooks to automate queries and notifications.
- Hunts are marked preview on the Learn pages. A hunt follows a hypothesis. Its queries are independent clones. The Hypothesis menu sets the hypothesis status. You act by creating analytic rules, incidents, threat indicators or running playbooks. To use hunts you need the built-in Microsoft Sentinel Contributor role or a custom Azure RBAC role with
Microsoft.SecurityInsights/huntspermissions.
KQL jobs in the data lake
- A KQL job is a one-time or scheduled KQL query over data lake and federated tables. Uses: long-running incident investigation queries, enrichment, historical threat intelligence matching, anomaly detection.
- Tiers: the analytics tier supports advanced hunting, alerting and incident management; the data lake tier keeps long-term data (up to 12 years); data in the analytics tier is mirrored to the lake tier. Promoting data to the analytics tier costs more storage, so promote only what you need.
- Output: a new table in the analytics tier is suffixed
_KQL_CL; a new table in the System tables workspace (data lake tier) is suffixed_KQL. Writing to System tables is in preview. You can't write to federated tables, and appended results must match the destination schema. - To create custom tables in the analytics tier, assign Log Analytics Contributor on the workspace to the data lake managed identity (
msg-resources-<guid>). - Create a job in the KQL query editor (Create job) or at Data lake exploration > Jobs, or from a template. Choose One time (runs when you submit) or a schedule (by minute, hourly, daily, weekly, monthly). Editing a one-time job triggers it at once.
- Name rules: unique in the tenant, up to 256 characters, no
#or-. A schedule start must be at least 30 minutes after creation. - Data lake ingestion latency is typically up to 15 minutes, so set the query end time to
now() - delay. - Not supported:
adx(),arg(),externaldata(),ingestion_time(), user-defined functions. A job whose source workspace is deleted is placed in a Disabled state.
| Limit (per tenant) | Value |
|---|---|
| Concurrent job executions | 5 (extra requests are rejected, not queued) |
| Query timeout | 1 hour |
| Enabled jobs | 100 |
| Output tables per job | 1 |
| Query time range | Up to 12 years |
Interactive KQL queries in the Defender portal: 500,000 rows or 64 MB and an 8 minute timeout; async queries keep results 24 hours.
Summary rules
- Summary rules aggregate large data sets in the background. Results go to a custom table that uses the Analytics data plan. Sources can be Analytics, Basic or Auxiliary tables.
- Prerequisites: Microsoft Sentinel Contributor; to create rules in the Defender portal, onboard the workspace to the Defender portal. Enabling the SummaryLogs diagnostic setting is recommended (extra cost).
- Wizard: Microsoft Sentinel > Configuration > Summary rules, then Create. A new table name takes the form
<tableName>_CL. Test the query on the Hunts page first. - Templates: Content hub, filter Content type by Summary rules, install, then Create on the Templates tab.
- Limits: 100 active rules per workspace; only the recent past up to 24 hours is processed (maximum
binSize1440 minutes); no user-defined functions; nounion *orisfuzzy=true.
Notebooks and the Sentinel MCP server
- Notebooks run in Visual Studio Code with the Microsoft Sentinel extension, using Python for Spark (PySpark). Connect with
MicrosoftSentinelProviderfromsentinel_lake.providers. - Onboard to the data lake first. Entra ID roles give access across all workspaces; Azure RBAC roles grant access to individual workspaces. Writing custom analytics tier tables needs Log Analytics Contributor for the data lake managed identity.
- Runtime pools: Small (development, light analysis), Medium (ETL, joins, aggregations, ML training), Large (deep learning, critical execution time). A session takes minutes to start.
- Limits: language Python; the Set session timeout setting defaults to 30 minutes, while the same page's limits table lists a 20-minute interactive session inactivity timeout (Microsoft's page differs internally); notebook job timeout 8 hours; 3 concurrent notebook jobs (others queue); no pip installs or custom libraries.
- MCP: host (AI application, for example Visual Studio Code) coordinates clients; a client connects to a server. The Sentinel MCP server is hosted and uses Microsoft Entra for identity.
- Most tools need data lake onboarding. You need the Security reader role to list and invoke the tools. Data exploration collection:
search_tables(find tables and schemas), Execute KQL query, List workspaces, Entity analyzer, and Graph tools (preview).
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Delay a scheduled query for data lake ingestion latency | let lookback = 15m; let delay = 15m; let endTime = now() - delay; let startTime = endTime - lookback; CommonSecurityLog | where TimeGenerated between (startTime .. endTime) | - |
| Summary rule query example | GCPAuditLogs | where ServiceName == 'pubsub.googleapis.com' | summarize count() by Severity | - |
Exam Tips
Tick each tip once you can answer it without looking.
“Find hunting queries whose volume changed most in 24 hours” → Sort or filter on Results delta or Results delta percentage. Trap: N/A means the data source isn't connected, not a spike.
“Tune a built-in hunting query” → Clone it, edit the copy, select Create. Trap: Only queries from a custom content source can be edited in place.
“Query bookmarked hunting rows with KQL” → HuntingBookmark table in the Log Analytics workspace. Trap: Bookmarks aren't available in Advanced hunting.
“Turn a high-value hunting query into an alert” → New alert rule, then Create Microsoft Sentinel alert, and use the Analytics rule wizard. Trap: A bookmark keeps rows; it doesn't create a rule.
“Automate queries and notifications” → KQL jobs, analytics rules or playbooks. Trap: Livestreams are no longer available.
“Queries inside a hunt” → Independent clones; changes don't affect the Queries tab. Trap: Hunts are marked preview on the Learn pages.
“New table written by a KQL job in the analytics tier” → Suffix _KQL_CL. Trap: _KQL is for the System tables workspace in the data lake tier.
“Valid KQL job name” → Unique in the tenant, up to 256 characters, no # and no -. Trap: A hyphen is a common mistake.
“Earliest start for a scheduled KQL job” → At least 30 minutes after creation. Trap: Editing a one-time job runs it immediately.
“KQL job limits” → 5 concurrent per tenant (rejected, not queued), 1 hour timeout, 100 enabled jobs, 1 output table. Trap: Excess jobs aren't queued.
“Create custom analytics tier tables from a job or notebook” → Log Analytics Contributor on the workspace for the data lake managed identity. Trap: You can't write job results to federated tables.
“Summary rule destination and max bin size” → Custom table (Analytics plan); binSize up to 1440 minutes. Trap: Sources can be Analytics, Basic or Auxiliary tables; 100 active rules per workspace.
“Create summary rules in the Defender portal” → Microsoft Sentinel Contributor and a workspace onboarded to the Defender portal. Trap: SummaryLogs diagnostics are recommended, not listed as required.
“Notebook for deep learning where time is critical” → Large runtime pool. Trap: Medium is for ETL, joins and ML training.
“Find which data lake table holds the data (MCP)” → search_tables in the data exploration collection. Trap: Execute KQL query needs a known table; Entity analyzer covers users and URLs.
“Visual Studio Code in the MCP architecture” → MCP host (it creates an MCP client for the server). Trap: The Sentinel MCP server is the server.
Sources
- Hunting capabilities in Microsoft Sentinel
- Create custom hunting queries in Microsoft Sentinel
- Conduct end-to-end threat hunting with hunts
- Microsoft Sentinel data lake overview
- Create jobs in the Microsoft Sentinel data lake
- Run KQL queries against the Microsoft Sentinel data lake
- Aggregate Microsoft Sentinel data with summary rules
- Aggregate data in a Log Analytics workspace with summary rules
- Running notebooks on the Microsoft Sentinel data lake
- Exploring lake data using Jupyter notebooks
- What is Microsoft Sentinel's support for MCP?
- Get started with Microsoft Sentinel MCP server
- Data exploration tool collection in Microsoft Sentinel MCP server
Checked against Microsoft Learn on November 13, 2026.