Detect threats by using the Microsoft Sentinel platform
Unlock the complete study guide + 25 practice exams totaling 1,498 questions.
Bundled into the existing Microsoft Certified: Security Operations Analyst Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Four tools for hunting on the Sentinel platform
- The Hunting page and its query list
- Creating, cloning, and editing hunting queries
- Bookmarks: keeping evidence from a hunt
- Hunts: working one hypothesis end to end
- Turning a hunting lead into action
- Data lake prerequisites for jobs and notebooks
- Choosing between KQL jobs, summary rules, and search jobs
- Creating a KQL job
- Writing KQL job queries for the data lake
- Hunting patterns that suit KQL jobs
- Running and maintaining KQL jobs
- Summary rules: bins and timing
- Writing an efficient summary rule query
- Deploying summary rules from the wizard or a template
- What summary rules cost
- Keeping summary rules healthy
- Notebooks: two runtimes for code-driven hunting
- Starting and monitoring a data lake notebook session
- Reading and writing lake tables with MicrosoftSentinelProvider
- Notebook jobs and runtime limits
- Connecting the Sentinel MCP server in VS Code
- Hunting with the data exploration tools
- Practice: matching hunting requirements to Sentinel features
The four Sentinel hunting tools at a glance
| Aspect | Hunting queries | KQL jobs | Summary rules | Notebooks |
|---|---|---|---|---|
| Language | KQL | KQL without adx(), arg(), externaldata(), ingestion_time(), or user-defined functions | KQL without cross-resource expressions, schema-reshaping plugins, or user-defined functions | Python (PySpark in the data lake runtime) |
| Data read | Workspace log tables, opened in the Logs page | Data lake and federated tables across the selected workspaces | Tables on the Analytics, Basic, or Auxiliary plan, and data lake tables except System tables | Data lake and federated tables, plus external data your code can reach |
| When it runs | When you run it; favorites run each time the Hunting page opens | Once on submit, or on a schedule that starts at least 30 minutes out | Once per bin (20 to 1440 minutes) over recent incoming data | Interactively, or on a schedule as a notebook job |
| What it leaves behind | A result count; bookmarks keep chosen rows | One table: new analytics tables end in _KQL_CL, new lake tables in _KQL | A custom _CL table on the Analytics plan | Tables saved with save_as_table (_SPRK lake, _SPRK_CL analytics) |
| Where you author it | Hunting page, Queries tab | KQL queries editor or Jobs page in the Defender portal | Summary rules page, API, or Azure Resource Manager template | VS Code Sentinel extension (data lake); Notebooks page (classic) |
| Raises alerts | No; New alert rule creates an analytics rule | No; results land in a table | No; add an analytics rule over the table | No; results land in a table or the notebook |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- https://learn.microsoft.com/en-us/kusto/query/
- https://learn.microsoft.com/en-us/azure/sentinel/hunting
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/kql-jobs
- https://learn.microsoft.com/en-us/azure/sentinel/summary-rules
- https://learn.microsoft.com/en-us/azure/sentinel/notebooks
- https://learn.microsoft.com/en-us/azure/sentinel/manage-data-overview
- https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logs-table-plans
- https://learn.microsoft.com/en-us/azure/sentinel/manage-table-tiers-retention
- https://learn.microsoft.com/en-us/azure/azure-monitor/logs/summary-rules
- https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-overview
- https://learn.microsoft.com/en-us/azure/sentinel/hunts
- https://learn.microsoft.com/en-us/azure/sentinel/hunts-custom-queries
- https://learn.microsoft.com/en-us/azure/sentinel/bookmarks
- https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/huntingbookmark
- https://learn.microsoft.com/en-us/azure/sentinel/whats-new
- https://learn.microsoft.com/en-us/azure/sentinel/roles
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/kql-jobs-summary-rules-search-jobs
- https://learn.microsoft.com/en-us/kusto/management/stored-query-results
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/kql-sample-queries
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/kql-manage-jobs
- https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/lasummarylogs
- https://learn.microsoft.com/en-us/azure/azure-monitor/logs/personal-data-mgmt
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/notebooks
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-provider-class-reference
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-mcp-overview
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-mcp-data-exploration-tool
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-mcp-agent-creation-tool
- https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-mcp-use-tool-visual-studio-code