Skip to main content

Microsoft Entra ID Logs (Event Hubs)

Fluency collects the Microsoft Entra ID directory audit, sign-in and provisioning logs (who changed what in your identity system, and who signed in from where) through an Azure event hub, the pipe Microsoft provides for handing logs to a SIEM. Entra does not wait to be asked: a diagnostic setting pushes each record into the hub as it is written, and Fluency reads it from there.

Nothing is granted to Fluency inside your directory: no application to consent to and no Microsoft Graph permission. The only credential that leaves Azure is a connection string that reaches one event hub and can only listen.

TemplateCollects
Microsoft Entra ID Logs (Event Hubs) (this page)Microsoft Entra ID activity logs, streamed by a Microsoft Entra diagnostic setting
Azure Event Hubs (generic)Any other Azure log, streamed by Azure Monitor diagnostic settings: the subscription Activity Log, and resource logs from Key Vault, Azure Firewall, SQL, Storage and the rest

Microsoft Entra ID Logs (Event Hubs) is one of the two routes for Microsoft Entra ID Logs. The other, Microsoft Entra ID Logs (Graph API), polls the same logs from Microsoft Graph under administrator consent and files them in the same shape and index, so run one or the other. This route adds the non-interactive, service principal and managed identity sign-ins and provisioning logs, at the cost of an Event Hubs namespace in your Azure subscription; Graph API or Event Hubs sets the two side by side.

The setup has three parts, and they often belong to three different people:

  1. In Azure: with Contributor on a subscription in the same tenant, create a Standard Event Hubs namespace and an event hub, add a Listen-only policy on the hub under Settings → Shared access policies, and copy its Primary connection string.
  2. In Microsoft Entra ID: as a Security Administrator, add a diagnostic setting under Entra ID → Monitoring & health → Diagnostic settings that streams AuditLogs, the sign-in categories and ProvisioningLogs to that hub.
  3. In Fluency: install the Microsoft Entra ID Logs (Event Hubs) template with the connection string.

What arrives​

StreamWhat it holdsLands in
AuditLogsDirectory changes: users, groups, applications, role assignments, consent grants.MSEntra and AzureAuditLogs
SignInLogsInteractive user sign-ins, with client IP, device, Conditional Access result and risk.MSEntra and AzureSigninLogs
NonInteractiveUserSignInLogsSign-ins a client performs on a user's behalf, such as token refreshes.MSEntra and AADNonInteractiveUserSignInLogs
ServicePrincipalSignInLogsApplications signing in as themselves.MSEntra and AADServicePrincipalSignInLogs
ManagedIdentitySignInLogsManaged identities signing in.MSEntra and AADManagedIdentitySignInLogs
ProvisioningLogsUser and group provisioning to and from connected applications.MSEntra only

The sign-in and provisioning categories need Entra ID P1 or P2; a Free tenant sends AuditLogs alone. The template drops every other category, ID Protection's risk categories and MicrosoftGraphActivityLogs among them; to keep those, stream them to a second hub read by the Azure Event Hubs (generic) template. A Fluency-side outage longer than the hub's retention (seven days at most on Standard, one on Basic) is permanent loss (retention).

Every category with its licence, where each one is filed, and how this feed relates to Microsoft's other Entra feeds are in Reference.

Before you begin​

An Azure subscription in the same tenant, and Contributor on it. The namespace and hub are Azure resources, so creating them needs Azure RBAC (Contributor or Owner on the subscription, or Contributor on an existing resource group) rather than an Entra directory role, and the subscription has to be associated with the Entra tenant whose logs it streams (roles).

The namespace is billed for as long as it exists, per throughput unit per hour plus ingress, whether or not anything reads it. One Standard throughput unit is the starting point; size it for the non-interactive and service principal sign-ins, which Microsoft puts at 5 to 10 times the interactive ones (volume).

A Security Administrator in Microsoft Entra ID, for the diagnostic setting. That person also needs to list the keys of a policy on the namespace, which is an Azure permission, not an Entra one: either one person holds both, or the Security Administrator is given Contributor on the namespace for the step (roles).

Access to the Fluency portal with permission to install applications.

Part 1: Azure​

Performed in the Azure portal by someone with Contributor on the subscription.

1. Create the namespace​

Search for Event Hubs and choose + Create. On the Basics tab:

  • Subscription and Resource group: the subscription in your Entra tenant; Create new, under the resource group list, makes a resource group for the integration.
  • Namespace name: globally unique; it becomes <name>.servicebus.windows.net.
  • Region: any region. Entra ID is a global service, so the region does not have to match anything for Entra logs.
  • Pricing tier: Standard. The capture below shows Basic, whose one-day retention and single consumer group are too little for this.
  • Throughput Units: 1.

Create Namespace Basics tab with the default subscription, a new fluency-azure-audit resource group and namespace name, the East US region, the Basic pricing tier and one throughput unit

Choose Review + create, then Create once the banner reads Validation succeeded. When the deployment page reads Your deployment is complete, choose Go to resource.

Deployment overview reading Your deployment is complete, with the Go to resource button under Next steps

2. Create the event hub​

In the namespace, go to Entities → Event Hubs, and choose + Event Hub.

Event Hubs page of the fluency-azure-audit namespace, under Entities, with the + Event Hub button and no event hubs yet

On the Basics tab:

  • Name: for example entra-logs. Give Entra ID a hub of its own; other Azure logs go into a different hub, read by the Azure Event Hubs (generic) template.
  • Partition count: 2 is enough for most tenants. It cannot be changed after creation on Basic or Standard.
  • Cleanup policy: Delete, the default.
  • Retention time (hrs): the maximum the tier allows: 168, seven days, on Standard. The allowed range is printed under the field; the capture is from a Basic namespace, where it stops at 24.

Leave the Capture tab as it is, then choose Review + create and Create.

Create Event Hub Basics tab with the name fluency-azure-audit, a partition count of 1, the Delete cleanup policy and a retention time of 24 hours

3. Create a Listen-only policy on the event hub​

Open the new hub from the Event Hubs list.

Event Hubs page of the namespace listing the fluency-azure-audit hub, Active, with 24 hours of message retention

In the hub, go to Settings → Shared access policies and choose + Add.

Shared access policies page of the fluency-azure-audit event hub, headed Event Hubs Instance, with no policies set up yet

Name the policy (fluency-listen, say), tick Listen and nothing else, and choose Create.

Add SAS Policy panel with the policy name fluency-azure-audit, only Listen ticked, and the Create button

On the event hub, not the namespace

The two Shared access policies pages look almost identical; the sub-heading under the title tells them apart. Event Hubs Instance is the hub, where this policy belongs. A policy on the Event Hubs Namespace page lacks ;EntityPath=<hub name>, reaches every hub in the namespace, and, if it is the built-in RootManageSharedAccessKey, carries Manage rights over all of them.

Shared access policies page headed Event Hubs Instance, listing the fluency-azure-audit policy with the Listen claim

4. Copy the connection string​

Select the policy. Of the five values on the SAS Policy panel, four are credentials, and only the Primary connection string goes into Fluency. The two keys are bare secrets, without the namespace, policy name and hub that Fluency also needs, and the Secondary connection string is held back for rotating the key.

SAS Policy panel for fluency-azure-audit with only Listen ticked, the masked Primary key, Secondary key, Primary connection string and Secondary connection string, and the SAS policy ARM ID

The five SAS Policy values with Primary connection string boxed in red and revealed, starting Endpoint=sb://fluency-azure-audit.servicebus.windows.net/;SharedAccessKeyN and cut off by the field&#39;s width; the two keys and the Secondary connection string are masked

Copy it with the copy button at the end of its field: the field is too narrow to show the whole string, so selecting the visible text gets only the start of it. Leave Show AMQP connection strings unticked. It is a single line of four name=value pairs separated by semicolons, starting with Endpoint=sb:// and ending with ;EntityPath= and the hub's name:

Endpoint=sb://<namespace>.servicebus.windows.net/;SharedAccessKeyName=<policy name>;SharedAccessKey=<key>;EntityPath=<hub name>
Whole and unedited

Fluency takes the connection string as one value, exactly as Azure gives it. Do not cut it down to the SharedAccessKey value, drop the EntityPath, or add quotes, spaces or line breaks. A string with no ;EntityPath= came from a namespace policy, not the hub's; go back to step 3.

ValueWhere it came from
Primary connection stringThe Listen policy on the event hub, step 3

The string carries the policy's key, so treat it as a credential. Unlike most secrets, though, it is not shown once: it can be read again from Shared access policies at any time, and replaced by regenerating the key.

Automated alternative: Azure CLI​

Steps 1 to 4 as Azure CLI commands. Run them signed in to the right subscription (az account show names it), and replace the namespace name with one of your own.

RG=fluency-eventhub-rg
NS=<globally-unique-namespace-name>
HUB=entra-logs

az group create --name "$RG" --location eastus

az eventhubs namespace create --resource-group "$RG" --name "$NS" \
--location eastus --sku Standard --capacity 1

az eventhubs eventhub create --resource-group "$RG" --namespace-name "$NS" \
--name "$HUB" --partition-count 2 --cleanup-policy Delete --retention-time-in-hours 168

az eventhubs eventhub authorization-rule create --resource-group "$RG" \
--namespace-name "$NS" --eventhub-name "$HUB" --name fluency-listen --rights Listen

# The Primary connection string
az eventhubs eventhub authorization-rule keys list --resource-group "$RG" \
--namespace-name "$NS" --eventhub-name "$HUB" --name fluency-listen \
--query primaryConnectionString -o tsv

Older Azure CLI releases do not accept --cleanup-policy and --retention-time-in-hours; on those, use --message-retention 7 instead. A subscription that has never used Event Hubs may need az provider register --namespace Microsoft.EventHub --wait first.

Part 2: Microsoft Entra ID​

Performed by a Security Administrator who can also read the namespace's keys (see Before you begin).

5. Add a diagnostic setting​

  1. Sign in to the Microsoft Entra admin center and browse to Entra ID → Monitoring & health → Diagnostic settings. The export settings link on the Audit logs and Sign-in logs pages leads to the same place.

    Diagnostic settings page in the Microsoft Entra admin center, reached from Monitoring &amp; health, with its General and Custom security attributes tabs

  2. On the General tab, choose + Add diagnostic setting.

  3. Enter a Diagnostic setting name, such as fluency. It cannot be changed later.

  4. Under Logs → Categories, select at least AuditLogs, and the four sign-in categories and ProvisioningLogs if the tenant has P1 or P2. The template drops anything else, so leave the rest off, MicrosoftGraphActivityLogs above all: it records every Graph call in the tenant (categories).

  5. Under Destination details, tick Stream to an event hub and fill in its fields:

    FieldValue
    SubscriptionThe subscription from step 1.
    Event hub namespaceThe namespace from step 1.
    Event hub name (optional)The hub from step 2. Optional to Azure, not to this integration: left empty, Azure creates hubs of its own in the namespace, named insights-logs-…, which the connection string from step 4 does not reach.
    Event hub policy nameRootManageSharedAccessKey, or another namespace-level policy with Manage, Send and Listen; Azure Monitor requires all three to stream. This is Entra's write credential. It is separate from Fluency's Listen-only one and never leaves Azure.
  6. Choose Save. A Successfully updated diagnostics notice confirms it.

Saved diagnostic setting fluency-azure-audit with AuditLogs, the four sign-in categories and ProvisioningLogs ticked, Stream to an event hub selected with the fluency-azure-audit namespace and hub and the RootManageSharedAccessKey policy, and the Successfully updated diagnostics notice

6. Check that the hub is receiving​

Open the event hub's Overview page in the Azure portal and watch the Messages chart. Incoming Messages above zero means Entra is writing.

Event hub overview with the Requests and Messages charts, showing a non-zero Incoming Messages count

The first records take a while: Azure Monitor's guidance is 90 minutes, and Entra allows up to three days (timing). To have something definite to look for, make a harmless change in Entra (create a group, then delete it) once the setting is saved.

Part 3: Fluency​

Install the Application​

In the navigation rail, open Applications and click Install Application, then choose Microsoft Entra ID Logs (Event Hubs) from the Office Software (SaaS) and IAM category of the Application Catalog, not the Microsoft Entra ID Logs (Graph API) card beside it, which collects the same logs through Microsoft Graph.

Application Catalog filtered to the Office Software (SaaS) and IAM category, showing its template cards, with Microsoft Entra ID Logs (Event Hubs) next to Microsoft Entra ID Logs (Graph API)

ParameterNotes
Event Hub connection string (Listen policy, including EntityPath)The Primary connection string from step 4, whole and unedited: Endpoint=sb://…;EntityPath=<hub name>. Not the Primary key on its own, and not a namespace policy's string, which has no EntityPath. Parameters are read-only after install, so a wrong value means uninstalling and installing again.
consumer group this datasource reads with (create a dedicated one if anything else already reads this hub)Pre-filled $Default. Keep it while Fluency is the hub's only reader; a Basic hub has no other. A name that does not exist on the hub collects nothing.
DescriptionOptional. An editable parameter of the template, in the v1 form, distinct from the read-only Description shown in its Application section.
datalakePre-filled managed.
datalake index namePre-filled MSEntra, the index of as-exported records. Keep it: the Entra ID search facets are set on MSEntra by name. Two applications writing to the same index name in the same lake will collide, and the second one aborts.

The last two sit in the collapsed Advanced configuration section below Configuration; click its heading to reach them.

Install Microsoft Entra ID Logs (Event Hubs) form with the Application section&#39;s Instance name and Display name fields, the Configuration section&#39;s Event Hub connection string (Listen policy, including EntityPath), consumer group this datasource reads with (create a dedicated one if anything else already reads this hub) and Description fields, and Advanced configuration expanded to datalake and datalake index name, above Cancel, Dry run and Install Application

Click Dry run first to have the platform check the connection string before anything is installed, then click Install Application. The Applications page opens with the notice Default is launching., and the new application is listed with a green Running badge once the pipeline is up.

Confirm it is running​

Click the application's row on Applications to open its details; the row and the details page carry the display name the template had when the application was installed. The Pipeline card draws the event hub data source, the router, and the destinations: the five table indexes listed under Where it is filed, and the management queue that carries the as-exported records into MSEntra.

Application details page for an application installed from this template under its earlier display name, Azure Directory Audit (Event Hub), marked Running, with the Pipeline card drawing the AzureAuditEventHub-default source, router and redis destination above five datalake destinations from AADManagedIdentitySignInLogs to AzureSigninLogs, and the Parameters and Actions cards below

Running reports the pipeline, not the stream. Confirm on both sides:

  1. In Azure, on the hub's Overview page, Outgoing Messages starts rising alongside Incoming Messages once Fluency is reading. Between them, the two lines localise most problems:

    IncomingOutgoingMeaning
    ZeroZeroNothing is writing to this hub. Go back to step 5.
    RisingZeroEntra is writing and nothing is reading. Check the connection string and the application.
    RisingRisingFluency is reading.
  2. In Fluency, search the MSEntra index, managed-MSEntra in the index selector of Datalake Search (v1: Data Lake → Search), for @eventType:AuditLogs and the group you created in step 6. See Confirm data is arriving.

The directory audit only records changes, so on a stable tenant an empty index proves nothing; a change you made yourself, or with sign-ins collected a sign-in to the Microsoft Entra admin center, found minutes later, tells "nothing has happened" from "nothing is arriving".

Once Outgoing Messages rises with Incoming Messages and your test change is in the MSEntra index, setup is complete.

Maintenance​

The clock on this integration is the hub's retention: any gap in reading, during a key rotation or a Fluency-side outage, has to stay shorter than it, because nothing re-sends what the hub has dropped (retention).

Rotating the key​

Every shared access policy has two keys, which makes an overlap possible: reinstall the application with the policy's Secondary connection string, and once data is flowing again, regenerate the primary key in Azure. Template parameters are read-only after install, so a new value means uninstall and reinstall. To uninstall, click Uninstall at the top right of the application's details page (v1: the red Uninstall button at the foot of its details panel on Platform → Applications). Keep the gap shorter than the hub's retention and nothing is lost. Rotating the Key has the full procedure.

Changing what is streamed​

Edit the diagnostic setting in Entra ID (Edit setting on its row) to add or remove categories. Nothing changes on the Fluency side, and only records written after the change are affected.

Removing the integration​

  1. Uninstall the application in Fluency, with the Uninstall button at the top right of its details page (v1: the red Uninstall button at the foot of its details panel on Platform → Applications).
  2. Delete the diagnostic setting in Entra ID → Monitoring & health → Diagnostic settings. Left in place, Entra keeps writing into a hub nobody reads.
  3. Delete the namespace, or the whole resource group, to stop the hourly charge.

Troubleshooting​

SymptomLikely causeFix
Incoming Messages stays at zeroThe diagnostic setting points at a different hub, usually because Event hub name was left empty and Azure created insights-logs-… hubs of its ownEdit the setting and choose the hub from step 2 (step 5); delete any hubs Azure created once nothing writes to them.
Incoming Messages stays at zero for a new setting that points at the right hubToo early, or a quiet tenantWait: Microsoft allows up to three days. Make a change in Entra to give it something to send (step 6).
Incoming rises, Outgoing stays at zeroFluency is not readingCheck that the connection string ends in ;EntityPath= and this hub's name, that any consumer group named on the form exists on the hub, and that the application is Running.
The connection string has no EntityPathThe policy was created on the namespaceCreate a Listen-only policy on the event hub (step 3) and reinstall with its string.
The diagnostic setting's namespace list is empty, or Save fails with an authorization errorThe person creating it cannot list the namespace's keys, or the subscription belongs to another tenantGive them Contributor on the namespace, or use a subscription associated with this Entra tenant (roles).
Diagnostic settings is read-only, or Add diagnostic setting is unavailableThe signed-in account is not a Security AdministratorSign in with an account that holds the role.
AuditLogs arrive, sign-ins never doNo Entra ID P1 or P2 licence, or the sign-in categories were not selectedExpected on Free; otherwise edit the setting and select them (changing what is streamed).
Risk, Graph activity or other categories are selected and never appearThis template keeps only the sign-in, audit and provisioning categoriesSend them with a second diagnostic setting to a hub read by the Azure Event Hubs (generic) template (where it is filed).
Provisioning records are not in any table indexProvisioningLogs has no table indexSearch MSEntra for @eventType:ProvisioningLogs. They need P1 or P2, and a tenant that provisions nothing has none.
Throttled requests on the hub's Overview, and collection falls behindToo few throughput units, usually for the non-interactive and service principal sign-insAdd throughput units, or enable Auto-inflate on a Standard namespace.
The namespace's Networking restricts public accessAzure Monitor cannot write and Fluency cannot readLet Allow trusted Microsoft services bypass the firewall, as Azure Monitor requires, and let Fluency reach the namespace.
A gap after a Fluency-side outageThe outage outlasted the hub's retentionUnrecoverable through the hub (retention).

Reference​

The categories, where each is filed, the hub's retention and how the template handles records, for searches and detection rules written against MSEntra and the table indexes.

Entra ID log categories, licences and volume

The diagnostic setting decides which categories go into the hub. The choice is made in Entra ID, not on the install form, and it can be changed later without touching Fluency. The template keeps the first six below and drops the rest (where it is filed).

CategoryContentsLicence
AuditLogsDirectory changes: users, groups, applications, role assignments, licences, password resets, consent grants. The record of what changed in your identity system and who changed it.Any tier
SignInLogsInteractive user sign-ins (a user entering a password or passing an MFA challenge) with client IP, device, application, Conditional Access result and risk.P1 or P2
NonInteractiveUserSignInLogsSign-ins a client performs on a user's behalf with a token or code, such as token refreshes.P1 or P2
ServicePrincipalSignInLogsApplications signing in as themselves with a certificate or client secret.P1 or P2
ManagedIdentitySignInLogsManaged identities signing in, where Azure holds the secret.P1 or P2
ProvisioningLogsUser and group provisioning to and from connected applications such as Workday or ServiceNow.P1 or P2
RiskyUsers, UserRiskEvents, RiskyServicePrincipals, ServicePrincipalRiskEventsMicrosoft Entra ID Protection's risk state and risk detections. Dropped by this template.P2
MicrosoftGraphActivityLogsEvery HTTP request made to your tenant through Microsoft Graph. Dropped by this template.P1 or P2

The list in your tenant can be longer. ADFSSignInLogs is populated only for AD FS applications, the NetworkAccess…, RemoteNetworkHealthLogs and EnrichedOffice365AuditLogs categories only for Global Secure Access customers, and Microsoft describes MicrosoftServicePrincipalSignInLogs, its first-party service-to-service sign-ins, as "not necessary for most customers as they are complex and generate a high volume of data". Leave that one off.

Licences. Microsoft lists audit logs as available on every tier, including Free. For sign-ins, the diagnostic-setting screen itself warns that exporting sign-in data requires a P1 or P2 licence, so on a Free tenant select AuditLogs and expect nothing from the sign-in categories.

Volume. Sign-in volume is the cost driver. Microsoft's own estimate: "the non-interactive user sign-ins and service principal sign-ins can be 5 to 10 times larger than the interactive user sign-ins." They are also where token theft and abused application credentials show up, so they are worth collecting, but size the namespace for them.

Custom security attribute logs are a separate setting, configured under the Custom security attributes tab of Diagnostic settings, and need the Attribute Log Administrator role as well as Security Administrator. Microsoft recommends sending them to a different destination from the directory audit, "so that attribute assignments are not revealed inadvertently."

Where each record is filed

Each record is kept twice. As Microsoft exported it (the Azure Monitor envelope, with the Entra record under properties), it goes to the index named on the install form, MSEntra by default. That is the index the Default-EntraID_AuditLogs and Default-EntraID_SignIn search facets are set on, and the Entra ID detection rules match the same records; both select them by @eventType, which holds the category. The sign-in and audit categories are also rewritten into the columns of the matching Log Analytics table, so a query written against Microsoft's table runs unchanged, and each goes to an index of its own, named in the Lands in column of What arrives; ProvisioningLogs has no table index.

The table indexes are fixed by the template, not parameters, and they are the same five that the Microsoft Entra ID Logs (Graph API) and the Microsoft 365 Bundle templates create for their Microsoft Graph records. Every other category is dropped (the ID Protection risk categories, MicrosoftGraphActivityLogs, ADFSSignInLogs and the Global Secure Access categories among them), so selecting one costs namespace throughput and collects nothing. To keep them, send them with a second diagnostic setting to a hub of their own, read by the Azure Event Hubs (generic) template.

Other templates that use MSEntra. The Graph API Microsoft Entra ID Logs (Graph API) template files its records in this same shape, with @source set to AzureAudit where this template sets AzureEventHub, and its index also defaults to MSEntra; so does the directory audit collected by the Microsoft 365 Bundle, which keeps Microsoft Graph's own record shape rather than the Azure Monitor envelope. On older deployments those two write to the legacy AzureAudit index instead. Two applications writing to the same index name in the same lake collide, so only one of them can use MSEntra there.

Retention: the hub's, not Entra's

A diagnostic setting streams records as Entra writes them. It does not send anything older than the setting itself, and it does not re-send a record that has already gone into the hub. So once a record is in the hub, the hub's retention is how long Fluency has to read it:

Event Hubs tierMaximum retentionConsumer groups
Basic1 day$Default only
Standard7 daysUp to 20

That retention is the length of Fluency-side outage the integration survives. Entra keeps its own copy for its own retention period (seven days on Free, 30 on P1 or P2), but nothing feeds that copy back into the hub. Use Standard and set the hub's retention to the full seven days.

Roles and permissions

The subscription. Microsoft requires that "The subscription and Event Hubs namespace must both be associated with the Microsoft Entra tenant from where you're streaming the logs."

The diagnostic setting. Microsoft names Security Administrator "the least privileged role required to configure diagnostic settings". Azure Monitor adds its own rule for the destination: "you must have the ListKey permission on that Event Hubs authorization rule", which is an Azure permission rather than an Entra one.

Compared with the Graph API route. Unlike the Microsoft Entra ID Logs (Graph API) template, no Global Administrator or Privileged Role Administrator is involved, and no Fluency application is added to your tenant.

The Office 365 unified audit log carries Entra activity too, as different records

The Audit.AzureActiveDirectory content type in the Office 365 unified audit log (Microsoft 365 Activity Log) describes events that overlap with the records collected here, in a different shape, with different fields and different retention. Running this alongside the unified audit log is duplicate coverage, not duplicate data. Microsoft Entra ID Logs (Graph API) is different: it polls these same records from Microsoft Graph, so run one or the other.

What Azure writes, and when

Azure Monitor and Entra diagnostic settings write JSON batches of the form {"records": [ … ]} to the hub. Each record carries time, category, operationName, resourceId and properties at least; for Entra categories, properties holds the audit or sign-in record itself. Records are written as they are produced and partitioned without a key, so their order across partitions is not guaranteed; sort on time, not on arrival.

The first records. Azure Monitor's guidance is that "data should start flowing to your selected destinations within 90 minutes", and Entra's documentation allows that "It might take up to three days for the logs to start appearing in the destination."

What the template does with each record

The application reads the hub through an Azure EventHubs plugin data source, AzureAuditEventHub-<name>, which feeds a router of the same name. Three pipes run on the router, in this order:

  1. AzureAuditEventHub_Transform rewrites each sign-in and directory audit record into the columns of its Log Analytics table, writes it to that table's index, and passes the original record on. Where Graph's object has no value for a column, the Azure Monitor envelope fills it: AADTenantId, Level, ResultType and ResultDescription, and for audits OperationName, OperationVersion, ResultSignature, Identity and DurationMs.
  2. AzureAuditEventHub_ParserRules hands each record, unchanged, to the Entra ID detection rules for its category (SignInLogs, NonInteractiveUserSignInLogs or AuditLogs) and passes it on.
  3. AzureAuditEventHub_Adjustments drops every category but the sign-ins, the directory audit and provisioning, and writes the rest, unchanged, to the form's index through the management queue, also named AzureAuditEventHub-<name>. It adds only @ metadata: @timestamp from the record's own time (createdDateTime for sign-ins, activityDateTime for audit and provisioning, the envelope's time otherwise), @eventType set to the category, @tenantId, @sender (azureAudit) and @source (AzureEventHub). On UserManagement audits it also geolocates the initiating user's IP address, under @normalized.

The form's index is created with the MSEntra schema, listed on Configuration → Schemas (v1: Data Lake → Schemas). It is dynamic: each record is held whole as JSON in a doc column, beside timestamp, size and labels. The Graph API template creates its index with the same schema. The Microsoft 365 Bundle's AzureAudit schema has the same layout, but the records in it are in Graph's own shape, not the Azure Monitor envelope.

Consumer groups and checkpoints. The application reads through the consumer group named on the form. Unlike the Azure Event Hubs (generic) template, it has no checkpoint-storage parameter. Another application reading the same hub needs a different consumer group. Event Streams covers both.

Microsoft documentation

Fluency

Other integrations