Logs, Workbooks & Secure Score
Sign-in, audit and provisioning logs · diagnostic settings · Log Analytics and KQL · workbooks · Identity Secure Score
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Activity logs
| Log | Answers | Notes |
|---|---|---|
| Audit logs | Who changed what: users, groups, applications, licenses, custom security attributes | History of every task performed in the tenant; entries can't be changed or deleted |
| Sign-in logs | Sign-in attempts of users and client applications | Four types: interactive, non-interactive, service principal, managed identity. The legacy view has only interactive. |
| Provisioning logs | Users provisioned through a third-party service (Workday, ServiceNow) | Action: Create, Update, Delete, Disable, StagedDelete, Other. Status: Success, Failure, Skipped, Warning. |
- Reports Reader is the least privileged role to access the activity logs; Security Administrator is the least privileged role to configure diagnostic settings. Consenting to Graph permissions to view logs needs Privileged Role Administrator.
- Admin center path: Entra ID > Monitoring & health > Audit logs, Sign-in logs or Provisioning logs.
- Audit log details include the correlation ID and old and new values. The Custom Security tab needs Attribute Log Reader or Administrator.
- Sign-in details: the Conditional Access tab lists the policies and their result; Windows Hello for Business shows as Not Applied because Conditional Access protects cloud resource sign-ins, not Windows sign-in.
- Provisioning log details are grouped into four tabs: Steps, Troubleshooting & Recommendations, Modified Properties and Summary.
- Provisioning workbooks: Provisioning Analysis and Provisioning Insights.
Retention
| Report | Free | P1 | P2 |
|---|---|---|---|
| Audit logs | 7 days | 30 days | 30 days |
| Sign-ins | 7 days | 30 days | 30 days |
| Risky sign-ins | 7 days | 30 days | 90 days |
| Risky users | No limit | No limit | No limit |
- Retention changes aren't retroactive: after an upgrade from Free you see only data still within seven days.
- Microsoft Graph activity logs need P1 or P2 and aren't retained unless archived to storage or sent to analytics tools.
- Entra audit and sign-in logs are separate from the Microsoft 365 Unified Audit Log; Microsoft Purview Audit (Premium) can also retain Entra audit logs beyond the default period.
Diagnostic settings and destinations
Path: Entra ID > Monitoring & health > Diagnostic settings > Add diagnostic setting. Name it, select log categories, choose the destination and subscription, and save.
| Destination | Use it for |
|---|---|
| Log Analytics workspace (Azure Monitor logs) | Querying often, reports, KQL, workbooks, alerts |
| Storage account | Long-term archive when you won't query often |
| Event hub | Streaming to SIEM tools such as Splunk and SumoLogic |
| Microsoft Sentinel | Near real-time detection and threat hunting |
| Manual download (JSON or CSV) | Cheap backup when budget is tight; more manual work |
- You can create multiple diagnostic settings to send logs to different destinations. The destination must exist first.
- It might take up to three days for logs to appear in the destination.
- Security Administrator access creates general settings; Attribute Log Administrator is needed for custom security attribute logs, which Microsoft recommends keeping separate from directory audit logs.
- Integrating with Azure Monitor automatically enables the Microsoft Entra data connector in Microsoft Sentinel.
- Categories include AuditLogs, SignInLogs, NonInteractiveUserSIgnInLogs, ServicePrincipalSignInLogs, ManagedIdentitySignInLogs, ProvisioningLogs, ADFSSignInLogs, RiskyUsers, UserRiskEvents and MicrosoftGraphActivityLogs.
Log Analytics and KQL
- Prerequisites: a P1 or P2 license, a Log Analytics workspace and access to it, and the right Azure Monitor and Microsoft Entra roles.
- Read: Reports Reader, Security Reader or Global Reader. Update (create or edit diagnostic settings): Security Administrator.
- Azure Monitor roles: Monitoring Reader and Log Analytics Reader view; Monitoring Contributor and Log Analytics Contributor view and modify settings.
- Admin center: Entra ID > Monitoring & health > Log Analytics runs queries once logs are routed.
| Table | Example from Microsoft |
|---|---|
| SigninLogs | | summarize signInCount = count() by AppDisplayName; risky: | where RiskState contains "atRisk" |
| AuditLogs | | summarize auditCount = count() by OperationName |
| AADProvisioningLogs | | summarize count() by Action, bin(TimeGenerated, 1d) |
Log Analytics receives every request of a sign-in individually, while the portal merges them by correlation ID. Group by correlation ID and use the final status as the result.
Workbooks and Identity Secure Score
- Workbooks need a Premium P1 tenant, a Log Analytics workspace and access to it, plus the Azure Monitor and Entra roles. Path: Entra ID > Monitoring & health > Workbooks.
- Public templates are a starting point; private templates serve as a foundation for your own. Saving needs the ability to save to the chosen resource group.
- Public templates include Authentication prompts analysis, Conditional Access gap analyzer, Cross-tenant access activity, Multifactor authentication gaps, Risk analysis, Sensitive Operations Report and Sign-ins using legacy authentication.
- Identity Secure Score is a percentage showing how aligned you are with Microsoft's security recommendations. It is recalculated every 24 hours, is available to free and paid customers, and is the identity part of the Microsoft secure score.
- Roles: Global Reader to open it; Service Support Administrator to view an improvement action; SharePoint Administrator to update its status.
- Statuses: To address, Risk accepted (no points, hidden from the list), Planned, Resolved through third party or alternate mitigation (points awarded; Microsoft can't verify). Ignored recommendations don't count.
- It isn't a measure of breach likelihood; focus on high-importance recommendations instead of a target number.
Exam Tips
Tick each tip once you can answer it without looking.
“Who gave a user access to an admin group?” → Audit logs.. Trap: Sign-in logs record sign-in attempts; provisioning logs record third-party provisioning.
“Least privileged role to read logs vs configure diagnostic settings” → Reports Reader reads the logs; Security Administrator configures diagnostic settings.. Trap: Security Reader, Global Reader and Reports Reader give read access only.
“Default retention of audit and sign-in logs” → Free 7 days; P1 and P2 30 days. Risky sign-ins 7, 30 and 90 days.. Trap: Upgrading doesn't bring back data older than seven days.
“Pick the destination” → Query often: Log Analytics. Archive: storage account. Splunk or other SIEM: event hub.. Trap: Manual download is for budget limits and needs more manual interaction.
“Diagnostic setting prerequisites” → The destination must exist first; Security Administrator creates general settings; logs can take up to three days to appear.. Trap: Custom security attribute logs need Attribute Log Administrator.
“Send Entra logs to Azure Monitor logs” → It also enables the Entra data connector in Microsoft Sentinel automatically.. Trap: You still need a Log Analytics workspace and workspace access.
“KQL tables for Entra logs” → SigninLogs, AuditLogs, AADProvisioningLogs.. Trap: Diagnostic category names (such as ProvisioningLogs) aren't the table names used in the queries.
“Three rows in Log Analytics for one sign-in shown once in the portal” → Expected: group by correlation ID and use the final status.. Trap: The portal merges requests; Log Analytics keeps each request.
“Prerequisites for Entra workbooks” → Premium P1 license, Log Analytics workspace with access, and the Azure Monitor and Entra roles.. Trap: Not P2, and not an event hub or storage account.
“Who still uses legacy authentication?” → Workbook template Sign-ins using legacy authentication.. Trap: Conditional Access gap analyzer and MFA gaps cover other questions.
“Identity Secure Score basics” → Percentage alignment with Microsoft's recommendations, recalculated every 24 hours, for free and paid customers; identity part of the Microsoft secure score.. Trap: It isn't a measure of breach likelihood.
“Third-party tool already meets a recommendation” → Resolved through third party (or alternate mitigation): points awarded.. Trap: Risk accepted awards no points and hides the action.
“Sign-in log types” → Interactive, non-interactive, service principal and managed identity.. Trap: The legacy experience only shows interactive user sign-ins.
“Windows Hello for Business sign-in shows Not Applied for Conditional Access” → Expected: Conditional Access protects cloud resource sign-ins, not Windows sign-in.. Trap: Not Applied can also mean no policy applied to the user and app.
“Microsoft Graph activity logs” → P1 or P2 only; not retained unless archived to storage or sent to analytics tools.. Trap: The MicrosoftGraphActivityLogs category must be enabled; collection starts then.
Sources
- What is Microsoft Entra monitoring and health?
- Sign-in logs in Microsoft Entra ID
- Learn about the audit logs in Microsoft Entra ID
- User provisioning logs in Microsoft Entra ID
- Microsoft Entra data retention
- How to configure Microsoft Entra diagnostic settings
- Integrate Microsoft Entra logs with Azure Monitor logs
- Analyze activity logs using Log Analytics
- What are Microsoft Entra workbooks?
- How to use Microsoft Entra workbooks
- Logs available for streaming from Microsoft Entra ID
- Access activity logs in Microsoft Entra ID
- What is the Identity Secure Score?
- Sign-in log activity details
Checked against Microsoft Learn on November 13, 2026.