Agent Foskett Academy • Microsoft Entra • Module 2 • Lesson 22

Lesson 22 — Microsoft Entra Diagnostic Settings

Microsoft Entra records valuable identity activity, but portal retention alone is not a complete monitoring strategy.

Diagnostic Settings route selected audit, sign-in, provisioning, risk and workload identity logs to destinations designed for investigation, long-term retention and integration. Those destinations can include a Log Analytics workspace, Microsoft Sentinel, an Event Hub or an Azure Storage account.

This lesson explains how to select the right log categories, configure each destination, validate ingestion, control cost and avoid the visibility gaps caused by incomplete diagnostic settings.

A diagnostic setting is only useful when the required log categories are selected and the destination is receiving them.
Agent Foskett Microsoft Entra Diagnostic Settings lesson
What you will learn

This lesson explains how Microsoft Entra activity logs are exported, retained and made available to security operations.

Diagnostic Settings
Log Analytics and Sentinel
Event Hubs and Storage
Ingestion validation

Learning objectives

After completing this lesson, you should be able to design, configure and validate Microsoft Entra Diagnostic Settings.

  • Explain why Microsoft Entra logs should be exported.
  • Select the log categories required for security and operations.
  • Compare Log Analytics, Event Hubs and Azure Storage destinations.
  • Connect Entra telemetry to Microsoft Sentinel.
  • Validate ingestion and troubleshoot missing data.
  • Balance visibility, retention and ingestion cost.

The problem this solves

Identity evidence can disappear from the portal before an investigation, audit or legal request begins.

Diagnostic Settings create a controlled export path so important activity remains searchable, retainable and available to downstream security platforms.

What are Microsoft Entra Diagnostic Settings?

Diagnostic Settings are tenant-level export configurations that route selected Microsoft Entra activity logs to one or more supported destinations.

Microsoft Entra activity occurs ↓ Audit, sign-in, provisioning or risk event is generated ↓ Diagnostic Setting selects the required category ↓ Event is routed to Log Analytics, Event Hub or Storage ↓ Security operations query, retain or forward the evidence

Where to configure them

In the Microsoft Entra admin centre, browse to Entra ID → Monitoring & health → Diagnostic settings.

You can also reach the export configuration from the Audit logs or Sign-in logs experience.

Permissions and prerequisites

The administrator needs an appropriate Microsoft Entra role and permission to configure the selected Azure destination.

The destination subscription and tenant relationship must also support the intended routing design.

Core log categories

The available categories can evolve, so review the current list whenever a setting is created or audited.

CategoryWhat it recordsWhy it matters
AuditLogsDirectory, application, group, role and policy changesTracks who changed identity configuration and what changed
SignInLogsInteractive user authentication activitySupports user sign-in investigation and Conditional Access analysis
NonInteractiveUserSignInLogsToken activity without an interactive promptReveals background application and refresh-token activity
ServicePrincipalSignInLogsApplication identity authenticationMonitors workload identities, automation and app-only access
ManagedIdentitySignInLogsAzure resource managed identity authenticationProvides visibility into token requests made by Azure resources
ProvisioningLogsUser and group provisioning operationsHelps troubleshoot synchronisation and lifecycle failures
Risk-related logsIdentity Protection detections and risky activitySupports investigation of compromised users and workload identities

Log Analytics workspace

Sending logs to a Log Analytics workspace makes them available to Azure Monitor Logs and KQL.

This destination is ideal for investigation, workbooks, alerting and operational reporting.

Microsoft Sentinel

Microsoft Sentinel uses a Log Analytics workspace, so Entra logs routed to that workspace become available for analytics rules, incidents, workbooks and threat hunting.

Diagnostic Settings provide the data path; Sentinel provides the security operations layer.

Azure Storage

A Storage account supports economical long-term archival and retention requirements.

Storage is useful when evidence must be preserved beyond portal retention, but it is not as convenient as Log Analytics for immediate investigation.

Event Hubs

Event Hubs stream Entra activity to external SIEM platforms, data pipelines or custom consumers.

This destination is appropriate when another platform must receive identity telemetry continuously.

One setting or several?

Microsoft Entra supports multiple diagnostic settings, allowing different log categories to be routed to different destinations.

Diagnostic Setting 1 → Security logs → Sentinel workspace

Diagnostic Setting 2 → Required categories → Storage archive

Diagnostic Setting 3 → Selected streams → Event Hub → External SIEM

Use clear names so administrators can understand the purpose of each route without opening every setting.

Select categories deliberately

Do not assume that selecting one sign-in category captures every type of authentication.

Interactive users, non-interactive users, service principals and managed identities produce distinct telemetry.

Avoid the “all logs forever” shortcut

Collecting every available category can improve coverage, but it can also create unnecessary ingestion and retention cost.

Start with investigation and compliance requirements, then document why each category is enabled.

Retention design

Retention should match operational, regulatory and incident-response requirements.

Use Log Analytics for searchable operational data and Storage when longer, lower-cost archival is needed.

Cost considerations

Log volume varies substantially between interactive users, background token traffic and workload identities.

Measure ingestion after deployment and review high-volume categories rather than estimating solely from user count.

Configuration workflow

  1. Open Microsoft Entra Diagnostic Settings.
  2. Select Add diagnostic setting.
  3. Give the setting a descriptive name.
  4. Select the required log categories.
  5. Select one or more destinations.
  6. Choose the target workspace, Storage account or Event Hub.
  7. Save the setting.
  8. Generate or identify known activity.
  9. Validate that the expected destination receives the event.
  10. Record the configuration in the tenant monitoring standard.

Validate Log Analytics ingestion

Open the target workspace and query the expected Entra tables after allowing time for ingestion.

SigninLogs | where TimeGenerated > ago(30m) | take 20

Validate audit events

Perform a known administrative change or identify a recent change, then confirm that the event appears in the audit table.

AuditLogs | where TimeGenerated > ago(30m) | project TimeGenerated, OperationName, Result, InitiatedBy | order by TimeGenerated desc

Validate workload identities

Application and managed identity activity should be tested independently from user sign-ins.

A healthy interactive sign-in table does not prove that workload identity categories are enabled.

Check the destination, not just the setting

A saved setting confirms configuration, not successful ingestion.

Verify the target resource, tenant, subscription, permissions and table arrival before declaring the deployment complete.

Agent Foskett investigation: “The user sign-ins are visible, but the application activity is missing”

The SOC could investigate user sign-ins in Sentinel, but a suspicious application had no corresponding service principal events.

  1. Agent Foskett confirmed that interactive SigninLogs were arriving.
  2. The Diagnostic Setting was opened and reviewed category by category.
  3. ServicePrincipalSignInLogs had never been selected.
  4. The category was enabled and the setting was saved.
  5. A controlled application authentication generated a known event.
  6. The event appeared in the workload identity table after ingestion.
  7. The tenant monitoring checklist was updated to require separate validation for every identity type.
Finding:  The pipeline was working exactly as configured. The required telemetry had never been included.

Common causes of missing logs

  • The required category is not selected.
  • The wrong Log Analytics workspace was chosen.
  • The Event Hub or Storage destination belongs to an unexpected subscription.
  • The test activity did not generate the expected log type.
  • The query uses the wrong table or time range.
  • Ingestion delay is mistaken for permanent failure.

Common deployment mistakes

  • Enabling only interactive SignInLogs.
  • Assuming Microsoft Sentinel automatically receives every Entra category.
  • Failing to validate a known event after configuration.
  • Using unclear setting names.
  • Ignoring cost and retention design.
  • Never reviewing new categories introduced by Microsoft.

Operational review checklist

  • Confirm every required category remains selected.
  • Confirm each destination still exists and is authorised.
  • Run sample KQL against the expected tables.
  • Review ingestion volume and retention.
  • Document setting ownership and change control.
  • Reassess the available category list periodically.

Security best practices

  • Separate emergency retention from day-to-day analytics where appropriate.
  • Protect destination resources with least privilege.
  • Monitor changes to diagnostic settings.
  • Include workload identity telemetry in the monitoring design.
  • Test ingestion after every material configuration change.

Key takeaways

  • Microsoft Entra Diagnostic Settings export selected identity activity to supported destinations.
  • Log Analytics enables KQL, Azure Monitor and Microsoft Sentinel investigation.
  • Azure Storage supports long-term archival.
  • Event Hubs support streaming to external platforms and pipelines.
  • Different identity types use different sign-in categories.
  • A saved configuration must still be validated at the destination.
  • Collection scope, retention and cost should be deliberately designed.
  • Missing telemetry is often caused by an unselected category rather than a broken pipeline.

Continue learning

Continue through Microsoft Entra monitoring and operational security, or return to the academy roadmap.

Microsoft Entra Diagnostic Settings, Log Analytics and Microsoft Sentinel

Microsoft Entra Diagnostic Settings route audit logs, interactive and non-interactive sign-ins, service principal sign-ins, managed identity sign-ins, provisioning logs and risk telemetry to Log Analytics, Microsoft Sentinel, Event Hubs and Azure Storage.

Microsoft Entra Academy Lesson 22 — Diagnostic Settings

This Agent Foskett lesson explains log category selection, destination design, retention, cost management, KQL validation and investigation of missing Microsoft Entra telemetry.