Skip to content

Microsoft security logging guide

Read the searchable guide online: jusso-dev.github.io/microsoft-security-logging-guide (updated automatically every night).

Practical, product-by-product guidance on getting high-value security logs from Microsoft products into Microsoft Sentinel and Microsoft Defender XDR.

Microsoft's guidance on what to log is spread across hundreds of product pages. This repo pulls it into one place, with a folder per product that tells a security team which logs matter, which table they land in, how to connect them, what they cost, and which detections to switch on. Every guide links back to the official Microsoft documentation it's based on.

Disclaimer. This is community guidance, not official Microsoft documentation. Microsoft changes table names, connectors and licensing often. Always check the linked Microsoft Learn pages before you rely on anything here, and test in a non-production workspace first.

Part of the Microsoft security logging stack

  1. microsoft-security-logging-guide (you are here): What to log from Microsoft products into Microsoft Sentinel and Microsoft Defender XDR, with table mappings, connector setup, cost queries and recommended security configurations.
  2. soc-ready-logging: OWASP and ASD ACSC aligned security logging guidance, schemas, language wrappers, starter SIEM detections and AI agent skills for custom software vendors.
  3. Bower: Self-hosted security telemetry normaliser and Australian privacy gateway with default-deny event selection, host-side PII and secret redaction, tamper-evident buffering and signed Sentinel arrival proof.
  4. blueboard and crosswire: Human-gated AI agent tooling for Microsoft Defender XDR and Microsoft Sentinel SOC operations (blueboard is a shared incident board where agents and analysts detect, enrich, contain and eradicate together; crosswire is an open-source SOC kit using GitHub Copilot and Squad agents for hunting, threat intelligence comparison and gated response).

Start here: what are you trying to do?

Pick your goal below to jump straight to the right page (or open the full Start here decision guide):

I'm trying to... Do this
Start a new Sentinel deployment from scratch Follow the 4-week rollout in Start here, starting with free sources in Prioritisation and Architecture overview.
Map logging to ASD ACSC Priority Logs Use the checked matrix in Prioritisation (exact May 2025 PDF page references, free sources, default tiers and gaps).
Avoid paying twice for Defender XDR and Sentinel (or fix duplicate alerts) Follow the per-product decision table in Defender XDR vs Sentinel.
Harden Defender for Endpoint, Office 365, Identity, Cloud Apps, CSPM, SQL, Storage and other Defender plans Follow the product-by-product configuration checklist in Defender best-practice security configurations.
Check Microsoft's recommended security settings for every product in one place Browse the all-38-products cheat sheet in Microsoft recommended security configurations (every product guide also has its own Best-practice security configuration section).
Cut Sentinel ingestion costs or estimate spend before onboarding Run the 7 queries in Cost estimation (queries/cost/) and move hunt-only tables to the data lake using Data lake tiering.
Check if every table is landing and alert when a feed stops Run health-all-tables.kql from the Validation query pack and set up SentinelHealth alerts with Sentinel health and audit.
Feed VIP users, leavers or IP ranges into detections Set up UEBA IdentityInfo and watchlists using Watchlists and enrichment.
Deploy the guide's KQL detections, hunting queries and workbooks to Sentinel Use the one-click Microsoft Sentinel Content Hub V3 solution (122 analytic rules, 22 hunting queries and 2 workbooks) or the Defender XDR custom detections.
Onboard a specific product Jump to your product group below, or browse by threat and workload.

Deploy to Microsoft Sentinel

Deploy all 122 Sentinel analytic rule templates, 22 hunting queries and 2 operational workbooks (Ingestion Health and Cost Estimation) into an existing Log Analytics workspace in one click:

Deploy to Azure

Analytic rules deploy as disabled Content Hub V3 templates so you can enable and tune only the connectors you ingest. See solution/README.md for Azure CLI and PowerShell deployment commands, and defender-xdr/README.md for the 15 Defender XDR custom detections that run directly against native XDR tables without Sentinel ingestion costs.

Every product guide follows the same template, so once you open one you can jump straight to High-value log sources, Step-by-step setup, Validation KQL, Out-of-box analytic rules or Custom detections. Check the Last verified date at the bottom of each guide.

Three rules behind every guide

Not every log belongs in the same place. We ask three questions for every source:

  • Does a detection need it in near real time? If an analytic rule or custom detection reads it, keep it in the Sentinel Analytics tier.
  • Is it mostly for hunting, investigations or compliance? High-volume logs such as flow logs, firewall traffic, proxy logs and verbose storage/Graph logs belong in the Data lake tier, where storage is far cheaper and you can promote insights back to Analytics via summary rules or KQL jobs. See Data lake tiering.
  • Is it already in Defender XDR? Defender XDR keeps 30 days of advanced hunting data (90 days for eligible ISOC plans) at no Sentinel ingestion cost. Streaming raw tables into Sentinel costs money, so do it on purpose. See Defender XDR vs Sentinel.

Browse by product group

Each group page starts with an "I'm trying to..." guide for that area, a table of primary log tables and default tiers, and a link to that group's validation KQL pack.

Identity

Endpoint

Email and collaboration

Cloud apps

Azure

Data security

Business applications

AI

DevOps

Servers

Multi-cloud (optional)

Repository layout

docs/              Start here, architecture, prioritisation, tiering, cost, health and watchlists
queries/           Validation and cost estimation KQL packs
solution/          Microsoft Sentinel Content Hub V3 solution package and ARM template
defender-xdr/      Defender XDR custom detection rule definitions and advanced hunting queries
TEMPLATE.md        The structure every product guide follows
CHANGELOG.md       Dated history of manual and nightly automated updates
identity/          Entra ID, ID Protection, Defender for Identity, AD DS, AD FS, Global Secure Access
endpoint/          Defender for Endpoint, Windows security events, Intune
email-collab/      Exchange Online, Defender for Office 365, SharePoint and OneDrive, Teams, Purview audit
cloud-apps/        Defender for Cloud Apps
azure/             Azure Activity, Defender for Cloud, Key Vault, Storage, SQL, AKS, networking, App Service
data-security/     Purview DLP, Insider Risk Management, Information Protection
business-apps/     Power Platform, Dataverse and Dynamics 365, Copilot Studio
ai/                Microsoft 365 Copilot, Microsoft Foundry and Azure OpenAI
devops/            GitHub, Azure DevOps
servers/           Windows Server, Linux, SQL Server
multi-cloud/       AWS and Google Cloud (optional)

Key sources

These are the closest things to a single source of truth, and this repo builds on them:

Keeping it current

This guide is checked automatically every night (17:30 UTC) by a GitHub Actions workflow. It scans every linked Microsoft Learn page for newer updated_at or ms.date timestamps, checks linked Azure/Azure-Sentinel Content Hub solution folders for new commits, checks for broken links, and flags guides last verified more than six months ago. When drift is found, affected guides are updated automatically and only pushed to main (and published to GitHub Pages) if Markdown lint, writing style, Mermaid rendering, link checking and MkDocs strict build checks all pass.

See CHANGELOG.md for a history of updates.

Contributing

Contributions are very welcome, especially from people running these connectors in production. Read CONTRIBUTING.md, pick an open issue, and copy TEMPLATE.md when you start a guide. Corrections are just as valuable as new guides, so if a table has been renamed or a link has moved, open a correction issue.

Licence

  • Documentation and diagrams: Creative Commons Attribution 4.0 (CC BY 4.0). Reuse it in your own runbooks, just credit the source.
  • Code (KQL queries, scripts, workflows): MIT.

Microsoft, Microsoft Sentinel, Microsoft Defender and other product names are trademarks of Microsoft Corporation. This project isn't affiliated with or endorsed by Microsoft.