Free tech learning for everyone, from basics to pro

Azure SecurityCloud SecurityIntermediate

Azure Monitor, Log Analytics and Microsoft Sentinel concepts

In short: Azure Monitor is the platform for metrics and logs in Azure. Logs land in a Log Analytics workspace, where you query them with Kusto Query Language (KQL). Microsoft Sentinel sits on top of a workspace as a cloud SIEM and SOAR, turning logs into alerts, incidents and automated playbooks.

Azure Monitor and Log Analytics

Azure Monitor is the umbrella service for observability in Azure. It handles two main kinds of data: metrics (numbers over time, such as CPU percentage, kept for a short period and great for fast alerts) and logs (detailed records such as sign-ins, activity and application events).

From data to responseData sourcesEntra ID, Azure, serversCollectiondiagnostic settings, AMA, DCRsLog Analyticsworkspace, KQL tablesMicrosoft Sentineldetect, investigateResponseincidents, playbooks
Figure 1. Logs flow from sources through collection into a Log Analytics workspace, where Sentinel detects and responds.
Log sourceHow to collectExample table
Azure control plane (who changed what)Activity log diagnostic settingAzureActivity
Entra ID sign-ins and auditEntra diagnostic settingsSigninLogs, AuditLogs
Resource logs (Key Vault, firewall)Diagnostic settings per resourceAzureDiagnostics or resource tables
VMs and on-premises serversAzure Monitor Agent with data collection rulesSecurityEvent, Syslog

A Log Analytics workspace is the store for log data, with its own access control, retention and pricing. Many organisations keep one central security workspace per region to simplify queries and permissions.

Querying with KQL

Kusto Query Language (KQL) reads like a pipeline: start with a table, then filter, summarise and sort. This query finds accounts with many failed sign-ins in the last day:

SigninLogs
| where TimeGenerated > ago(1d)
| where ResultType != "0"
| summarize Failures = count() by UserPrincipalName, IPAddress
| where Failures > 20
| order by Failures desc

The same skills work in Azure Monitor, Sentinel and Microsoft Defender XDR advanced hunting, so KQL is worth learning early.

Microsoft Sentinel

Microsoft Sentinel is a cloud-native SIEM (security information and event management) with SOAR (security orchestration, automation and response) features. It is enabled on top of a Log Analytics workspace and is increasingly used through the unified Microsoft Defender portal.

Sentinel building blocksData connectorsbring logs inAnalytics rulesdetect threatsIncidentsgrouped alertsHuntingproactive queriesWorkbooksdashboardsPlaybooksautomated response
Figure 2. The main parts of Microsoft Sentinel and the job each one does.
  • Data connectors and Content hub solutions bring in Microsoft and third-party logs, such as firewalls via CEF or syslog.
  • Analytics rules run KQL on a schedule (or in near real time) and raise alerts, which are grouped into incidents.
  • Automation rules and playbooks (built on Azure Logic Apps) can assign incidents, add comments, notify people or disable a compromised account.
  • Hunting queries and notebooks support proactive searches; workbooks give dashboards.

Running it well

  1. Decide what to collect from your threat model; not every log is worth paying for.
  2. Use cheaper log tiers or shorter retention for high-volume, low-value data.
  3. Start with built-in rule templates for identity, Azure activity and Defender alerts, then tune false positives.
  4. Map rules to MITRE ATT&CK to spot gaps.
  5. Write a short runbook per incident type and automate the routine steps.
  6. Restrict who can read the workspace; logs often contain personal data.

Tip: ingestion is the main Sentinel cost. Review data volume per table monthly, as you would any other cloud cost.

Practice

What is the difference between metrics and logs in Azure Monitor?
Metrics are numeric time series for quick alerting; logs are detailed records stored in Log Analytics and queried with KQL.
What does a Sentinel analytics rule do?
It runs a query against workspace data on a schedule and creates alerts, grouped into incidents, when results match.
Which Azure service do Sentinel playbooks run on?
Azure Logic Apps.

Key takeaways

  • Azure Monitor handles metrics and logs; logs live in Log Analytics workspaces.
  • Diagnostic settings and the Azure Monitor Agent bring data in.
  • KQL is the query language across Monitor, Sentinel and Defender.
  • Sentinel adds detections, incidents, hunting and automated playbooks.
  • Collect with purpose and watch ingestion cost.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.