Architecture Guide For Streaming Auth0 Logs To Microsoft Sentinel
Last Updated:
Overview
Administrators need to ingest Auth0 tenant logs into Microsoft Sentinel for Security Information and Event Management (SIEM) monitoring. Choosing the wrong ingestion model can lead to throttling and data loss in production environments. Implement Auth0 Log Streaming to push log events in near real time to Azure Event Grid and forward them to Microsoft Sentinel via a compute layer.
Applies To
- Auth0
- Log Streaming
- Microsoft Sentinel
Solution
How do the ingestion models compare?
Compare the two ingestion models to understand the limitations and benefits of each approach.
- Option A: Management API Polling (Native Connector). The Microsoft Sentinel native Auth0 data connector connects directly to the Auth0 Management API and periodically calls the
/api/v2/logsendpoint. This method writes results into Log Analytics. This approach encounters Management API rate limits and causes delayed or dropped log ingestion. - Option B: Auth0 Log Streaming (Push-Based). Auth0 Log Streaming pushes log events in near real-time to a destination as they occur. This path bypasses the Management API entirely, avoids Management API rate limits, and delivers much lower latency.
The recommended architecture uses a direct path.
Review the recommended architecture path for log streaming.
- Auth0 (Log Streaming) > Azure Event Grid (Partner Topic) > Compute Layer > Microsoft Sentinel (Log Analytics Workspace).
NOTE: Do not insert an Azure Event Hub into this path unless the environment requires buffering at scale. An Event Hub adds cost, latency, and an extra point of failure without added benefit for a single downstream consumer like Microsoft Sentinel.
Why does the architecture require a compute layer?
Azure Monitor Data Collection Rules (DCRs) act as passive configuration objects. A DCR defines the expected schema, transformation, and destination table for the Logs Ingestion API. A DCR does not reach into an Event Grid topic or an Event Hub to pull data. A compute layer must actively receive the event and call the Logs Ingestion API. The compute layer requires one of the following components.
- An Azure Function that the Event Grid subscription triggers.
- An Azure Logic App that the Event Grid subscription triggers.
Configure the direct path architecture.
Enable Auth0 Log Streaming, activate the partner topic, create an event subscription, process the payload, and validate the events in Microsoft Sentinel.
- Enable Auth0 Log Streaming to Azure Event Grid. Create a
eventgridlog stream via the Auth0 Dashboard or Management API with the Azure subscription ID, resource group, and region. Auth0 returns aazurePartnerTopicname. - Activate the Partner Topic in Azure. Navigate to Event Grid, select Partner Topics, locate the pending topic that matches the Auth0 name, and activate it. Azure drops events until this activation occurs.
- Create an Event Grid Subscription targeting a compute layer. Set the Endpoint Type to Azure Function or Logic App on the activated Partner Topic.
- Process and forward the payload. The compute layer receives the Auth0 log JSON payload and sends it to the Log Analytics workspace using the Logs Ingestion API or the native Sentinel Logic App connector.
- Validate the events in Microsoft Sentinel. Confirm events land in the expected custom table in the Log Analytics workspace.
When does an Event Hub buffer make sense?
Add an Event Hub between Event Grid and the compute layer only when the environment requires the following capabilities.
- Durable buffering or replay for compliance or multi-consumer fan-out.
- Protection against downstream compute outages causing event loss.
- Very high sustained throughput where the native Event Grid retry policy fails to provide sufficient support.
The architecture components map to specific layers.
Review the architecture components and their corresponding layers in the following table.
|
Layer
|
Component
|
Verified Source
|
|---|---|---|
|
Log source
|
Auth0 Log Streaming (
eventgrid type) |
Auth0 Management API documentation
|
|
Transport
|
Azure Event Grid Partner Topic
|
Auth0 Management API documentation (
azurePartnerTopic field) |
|
Compute
|
Azure Function or Logic App
|
Standard Azure pattern
|
|
Ingestion
|
Logs Ingestion API and DCR, or native Sentinel Logic App connector
|
Standard Azure pattern
|
|
Destination
|
Log Analytics Workspace or Microsoft Sentinel
|
Standard Azure pattern
|
NOTE: Consult Microsoft documentation for details on integrating Azure Event Grid with Microsoft Sentinel.