Skip to content

Identity Log Sources

github-actions[bot] edited this page Nov 29, 2026 · 1 revision

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

๐ŸŽฏ Purpose

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.

โš™๏ธ Function

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.

๐Ÿ† Goal

Make sure the evidence an identity investigation needs is being collected and retained before the incident.

๐Ÿ“‹ When To Use

  • 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

๐Ÿ“Š Cross-Provider Comparison

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

๐ŸŸฆ Microsoft Entra ID

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). MfaDetail and RiskEventTypes are marked deprecated.
  • Workload tables add ServicePrincipalId, ServicePrincipalName, ServicePrincipalCredentialKeyId, ServicePrincipalCredentialThumbprint, ClientCredentialType and FederatedCredentialId.

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.

๐ŸŸง AWS

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):

  • eventSource signin.amazonaws.com, eventName ConsoleLogin, eventType AwsConsoleSignIn
  • responseElements.ConsoleLogin Success or Failure; errorMessage "Failed authentication"
  • additionalEventData.MFAUsed (Yes/No), MFAIdentifier, LoginTo
  • userIdentity.type Root, IAMUser or AssumedRole
  • Root sign-ins are recorded in us-east-1, us-east-2 or us-west-2; check all three. CheckMfa carries additionalEventData.MfaType; federated console sign-in also emits GetSigninToken.

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.

๐ŸŸฉ Google Cloud & Workspace

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: _Required 400 days, not configurable; _Default 30 days, configurable from 1 to 3650 days for project buckets but not for folder or organization _Default buckets (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; parameters login_type, login_challenge_method, is_second_factor, is_suspicious.
  • OAuth token: authorize, revoke, request, deny, activity; parameters client_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".

๐Ÿ”— Detections Using These Sources

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.

See also


Related Files


โฌ…๏ธ Cloud Identity index | Master Index | ๐ŸŽฏ Role Navigation | Legal Notice


๐Ÿ“„ Source: Cloud/Identity/identity-log-sources.md | โœ๏ธ Suggest an edit | โฌ…๏ธ Back to Cloud

Clone this wiki locally