Repository navigation
Identity Log Sources
Last reviewed: 2026-11-28 (provider documentation only; no log was exported or queried from any real tenant, account or organization)
Prerequisites: Cloud identity index ยท Log aggregation
One comparison of the identity logs that Microsoft Entra ID, AWS and Google Cloud / Workspace produce: which events matter, which fields identify the actor and session, how long each provider keeps them by default, and what licence or setting is needed first.
Gives a cross-provider summary table, then per-provider details with the exact table names, event names and field paths from each provider's reference documentation, and links to the identity detections that use them.
Make sure the evidence an identity investigation needs is being collected and retained before the incident.
- Planning SIEM ingestion and retention for identity providers
- Writing or porting an identity detection and checking field names
- Starting an investigation and working out how far back the logs go
| Microsoft Entra ID | AWS | Google Cloud / Workspace | |
|---|---|---|---|
| Sign-in events |
SigninLogs (interactive), AADNonInteractiveUserSignInLogs, AADServicePrincipalSignInLogs, AADManagedIdentitySignInLogs
|
CloudTrail ConsoleLogin (signin.amazonaws.com); IAM Identity Center CredentialChallenge, CredentialVerification, UserAuthentication
|
Workspace login audit (applicationName "login"): login_success, login_failure, suspicious_login and others |
| Directory / IAM changes |
AuditLogs (ActivityDisplayName, Category) |
CloudTrail management events, eventName = API action (CreateAccessKey, AttachUserPolicy) |
Cloud Audit Logs Admin Activity (protoPayload.methodName) |
| Actor fields |
UserPrincipalName, UserId, InitiatedBy
|
userIdentity.type, userIdentity.arn, userIdentity.onBehalfOf (Identity Center) |
authenticationInfo.principalEmail, serviceAccountDelegationInfo
|
| Source fields |
IPAddress, AutonomousSystemNumber, UserAgent
|
sourceIPAddress, userAgent
|
requestMetadata.callerIp, callerSuppliedUserAgent
|
| Default retention | Free 7 days; P1/P2 30 days (audit and sign-in) | Event history: 90 days of management events per Region |
_Required bucket 400 days (Admin Activity, System Event); _Default 30 days; Workspace audit 6 months |
| Prerequisite to keep more | Diagnostic settings to Log Analytics, storage or event hub | A trail or CloudTrail Lake event data store | Log sinks / bucket retention; Workspace export |
Sign-in logs. There are four types: interactive user, non-interactive user, service principal and managed identity. The legacy sign-in experience shows only interactive user sign-ins, and entries are system generated and can't be changed or deleted (sign-in logs). Log Analytics tables: SigninLogs, AADNonInteractiveUserSignInLogs, AADServicePrincipalSignInLogs, AADManagedIdentitySignInLogs.
Key sign-in columns:
- Result:
ResultType("0 indicates success"),ResultDescription - Policy:
ConditionalAccessStatus(success, failure, notApplied),ConditionalAccessPolicies,AuthenticationRequirement - Method:
AuthenticationDetails,AuthenticationMethodsUsed,AuthenticationProtocol(none, oAuth2, ropc, wsFederation, saml20, deviceCode) - Session and token:
SessionId,UniqueTokenIdentifier,IncomingTokenType,OriginalTransferMethod,TokenProtectionStatusDetails - Client:
AppDisplayName,AppId,ClientAppUsed,UserAgent,IPAddress,AutonomousSystemNumber - Risk:
RiskLevelDuringSignIn,RiskState,RiskEventTypes_V2(risk detail returns "hidden" for non-P2 tenants).MfaDetailandRiskEventTypesare marked deprecated. - Workload tables add
ServicePrincipalId,ServicePrincipalName,ServicePrincipalCredentialKeyId,ServicePrincipalCredentialThumbprint,ClientCredentialTypeandFederatedCredentialId.
Audit logs. AuditLogs columns: ActivityDisplayName, Category, InitiatedBy, TargetResources, AdditionalDetails, LoggedByService, Result, CorrelationId, OperationName. Activity names used across this section (audit activity reference):
| Category | Activities |
|---|---|
| ApplicationManagement | "Consent to application", "Add service principal credentials", "Add delegated permission grant", "Add app role assignment to service principal", "Add owner to application", "Update application - Certificates and secrets management" |
| RoleManagement | "Add member to role", "Add eligible member to role", plus PIM activation activities such as "Add member to role completed (PIM activation)" |
| Policy | "Add Conditional Access policy", "Update Conditional Access policy", "Delete Conditional Access policy", "Add named location", "Update security defaults" |
| DirectoryManagement | "Set federation settings on domain", "Set domain authentication", "Add unverified domain" |
Risk. AADUserRiskEvents: RiskEventType, RiskLevel, RiskState, RiskDetail, DetectionTimingType, IpAddress, Source, TokenIssuerType.
Retention and licensing (data retention): audit and sign-in logs 7 days on Free, 30 days on P1/P2. Risky sign-ins 7 / 30 / 90 days (Free / P1 / P2). Microsoft Graph activity logs need P1/P2 and are not retained at all unless sent to storage or analytics. Upgrading a licence isn't retroactive. Entra logs are separate from the Microsoft 365 Unified Audit Log, whose retention is managed in Purview. Configuring diagnostic settings needs at least the Security Administrator role.
CloudTrail event history is an "immutable record of the past 90 days of management events in an AWS Region", per Region and per account, free to view, and excludes data, Insights and network activity events. Alerting and longer retention need a trail or a CloudTrail Lake event data store (event history).
Console sign-in (sign-in events):
-
eventSourcesignin.amazonaws.com,eventNameConsoleLogin,eventTypeAwsConsoleSignIn -
responseElements.ConsoleLoginSuccessorFailure;errorMessage"Failed authentication" -
additionalEventData.MFAUsed(Yes/No),MFAIdentifier,LoginTo -
userIdentity.typeRoot,IAMUserorAssumedRole - Root sign-ins are recorded in us-east-1, us-east-2 or us-west-2; check all three.
CheckMfacarriesadditionalEventData.MfaType; federated console sign-in also emitsGetSigninToken.
IAM and STS (IAM CloudTrail integration): "All IAM and AWS STS actions are logged". An incorrect user name at sign-in is masked as HIDDEN_DUE_TO_SECURITY_REASONS. AssumeRoleWithSAML records userIdentity.type SAMLUser; AssumeRoleWithWebIdentity records WebIdentityUser with responseElements.subjectFromWebIdentityToken, audience and provider. Requests to the STS global endpoint log to us-east-1. Denied STS requests in the target account for cross-account assumptions are not logged there. Use sts:SourceIdentity and sts:RoleSessionName to keep human attribution through role chains.
IAM Identity Center (sign-in events, CloudTrail): CredentialChallenge, CredentialVerification and UserAuthentication with CredentialType (PASSWORD, TOTP, WEBAUTHN, EXTERNAL_IDP, RESYNC_TOTP, EMAIL_OTP). A failed sign-in produces no UserAuthentication event. Administration events come from sso.amazonaws.com (CreateAccountAssignment, PutInlinePolicyToPermissionSet, AttachManagedPolicyToPermissionSet, ProvisionPermissionSet) and identitystore.amazonaws.com (CreateUser, CreateGroupMembership). Portal events (Federate, GetRoleCredentials, ListAccounts) are on sso.amazonaws.com. userIdentity.onBehalfOf carries the Identity Center userId and identityStoreArn.
Cloud Audit Logs (overview):
- Admin Activity and System Event logs are "always written; you can't configure, exclude, or disable them".
- Data Access logs are disabled by default except for BigQuery, and enabling them may incur charges. The IAM get and list service-account-key methods are Data Access (
ADMIN_READ), so key enumeration is not visible unless Data Access logs are on. - Policy Denied logs are generated by default and charged; they can be excluded but not disabled.
- Retention:
_Required400 days, not configurable;_Default30 days, configurable from 1 to 3650 days for project buckets but not for folder or organization_Defaultbuckets (quotas).
IAM methods (IAM audit logging), Admin Activity: google.iam.admin.v1.CreateServiceAccountKey, UploadServiceAccountKey, DisableServiceAccountKey, DeleteServiceAccountKey, CreateServiceAccount, CreateRole, UpdateRole, google.iam.v1.WorkloadIdentityPools.SetIamPolicy. Project, folder and organization allow-policy changes are logged by cloudresourcemanager.googleapis.com (the documentation lists cloudresourcemanager.v3.projects.setIamPolicy and folder/organization equivalents).
Workspace (login events, token events, retention and lag):
- Login:
login_success,login_failure,login_challenge,suspicious_login,suspicious_programmatic_login,user_signed_out_due_to_suspicious_session_cookie,gov_attack_warning,2sv_enroll,2sv_disable,passkey_enrolled,passkey_removed,password_edit,recovery_email_edit,recovery_phone_edit,account_disabled_hijacked; parameterslogin_type,login_challenge_method,is_second_factor,is_suspicious. - OAuth token:
authorize,revoke,request,deny,activity; parametersclient_id,app_name,scope,client_type. - Admin log, User log (formerly Login audit) and OAuth Token log events are kept 6 months and admins can't change that. Login data is near real time; OAuth data can lag "up to a few hours".
| Source | Rules |
|---|---|
Entra AuditLogs
|
consent to application, service principal credentials added, privileged role member added |
Entra SigninLogs
|
emergency access account sign-in |
| CloudTrail | root console login, access key for other user, unexpected web identity subject |
| Cloud Audit Logs | service account key created, resource manager setIamPolicy |
These rules are syntax-, conversion- and synthetic-event-checked only; see the detections README. No Sigma validator checks cloud field names, so compare each field with the references above and with your collector's schema.
- README.md - Cloud identity section index
- identity-incident-response.md - Using these logs in an investigation
- detections/README.md - Identity detection rules
- ../README.md - Cloud Security section index
โฌ ๏ธ Cloud Identity index | Master Index | ๐ฏ Role Navigation | Legal Notice
๐ Source: Cloud/Identity/identity-log-sources.md | โ๏ธ Suggest an edit | โฌ
๏ธ Back to Cloud
- ๐บ๏ธ Browse by Topic
- ๐ All Repository Files
- ๐งญ Learning Paths
- ๐ Master Guide
- ๐ค Glossary
- โ๏ธ Legal & Disclaimer
๐ Foundations & Learning
๐ก๏ธ Defense & Investigations
- Incident Response
- Open Source Intelligence (OSINT)
- Reverse Engineering
- Operations Security (OPSEC)
- Compliance
โ๏ธ Platforms & Infrastructure
๐ก Hardware, Wireless & Field Projects
- PNWC Cyberdeck
- Hardware Testing
- Hardware Hacking
- Software-Defined Radio
- Wardriving
- uConsole
- Space Security
๐งฐ Assessment & Field Reference
๐ฆ Downloads & Project Resources
๐๏ธ Additional Topics