Ingest logs from Microsoft Azure Event Hub
Collect Microsoft Azure Event Hub data with Cortex Cloud.
Cortex Cloud can ingest different types of data from Microsoft Azure Event Hub using the Microsoft Azure Event Hub data collector. To receive logs from Azure Event Hub, you must configure the settings in Cortex Cloud based on your Microsoft Azure Event Hub configuration. After you set up data collection, Cortex Cloud begins receiving new logs and data from the source.
When Cortex Cloud begins receiving logs, the app creates a new dataset (MSFT_Azure_raw) that you can use to initiate XQL Search queries. For example, queries refer to the in-app XQL Library. For enhanced cloud protection, you can also configure Cortex Cloud to normalize Azure Event Hub audit logs, including Azure Kubernetes Service (AKS) audit logs, with other Cortex Cloud authentication stories across all cloud providers using the same format, which you can query with XQL Search using the cloud_audit_logs dataset. For logs that you do not configure Cortex Cloud to normalize, you can change the default dataset. Cortex Cloud can also generate Cortex Cloud issues (Analytics, IOC, BIOC, and Correlation Rules) when relevant from Azure Event Hub logs. While Correlation Rules issues are generated on non-normalized and normalized logs, Analytics, IOC, and BIOC issues are only raised on normalized logs.
Enhanced cloud protection provides:
Normalization of cloud logs
Cloud logs stitching
Enrichment with cloud data
Detection based on cloud analytics
Cloud-tailored investigations
The following table provides a brief description of the different types of Azure audit logs you can collect.
Activity logs
Retrieves events related to the operations on each Azure resource in the subscription from the outside in addition to updates on Service Health events. ### Note These logs are from the management plane.
Microsoft Entra ID Activity logs and Microsoft Entra ID Sign-in logs
Contain the history of sign-in activity and audit trail of changes made in Microsoft Entra ID (formerly Azure AD) for a particular tenant. ### Note Even though you can collect Microsoft Entra ID Activity logs and Microsoft Entra ID Sign-in logs using the Azure Event Hub data collector, we recommend using the Microsoft Office 365 data collector, because it is easier to configure. In addition, ensure that you do not configure both collectors to collect the same types of logs, because if you do so, you will be creating duplicate data in Cortex XDR.
Resource logs, including AKS audit logs
Retrieves events related to operations that were performed within an Azure resource. ### Note These logs are from the data plane.
Configure the Azure Event Hub collection in Cortex Cloud
To configure data collection from Azure Event Hub, you must first gather the necessary details from your Azure environment and then enable the collector in Cortex Cloud.
Task 1. Gather Event Hub details in Azure
In the Microsoft Azure console, open the Event Hubs page, and select the Azure Event Hub that you created for collection in Cortex Cloud.
Record the following parameters from your configured event hub, which you will need when configuring data collection in Cortex Cloud.
Your event hub’s consumer group:
Select Entities → Event Hubs, and select your event hub.
Select Entities → Consumer groups, and select your event hub.
In the Consumer group table, copy the applicable value listed in the Name column for your Cortex Cloud data collection configuration.
If you plan to use Connection String (SAS) authentication, record the following:
(Event Hub Connection String): Select your Event Hub → Settings → Shared access policies. Select the applicable policy and copy the Connection string-primary key.
(Storage Account Connection String) Open the Storage accounts page, select the account for lease management, and select Security + networking → Access keys. Click Show keys and copy the Connection string.
If you plan to use Managed Identity authentication, record the following:
Azure Details: Record the Client ID and Tenant ID from your Azure Entra ID configuration.
Audience: Record the Audience (typically
api://AzureADTokenExchange).
Configure diagnostic settings for the relevant log types you want to collect and then direct these diagnostic settings to the designated Azure Event Hub.
Open the Microsoft Azure console.
Your navigation is dependent on the type of logs you want to configure.
Log typeNavigation pathActivity logs
Select Azure services → Activity log → Export Activity Logs, and +Add diagnostic setting.
Microsoft Entra ID Activity logs and Microsoft Entra ID Sign-in logs
Select Azure services → Azure Active Directory.
Select Monitoring → Diagnostic settings, and +Add diagnostic setting.
Resource logs, including AKS audit logs
Search for Monitor, and select Settings → Diagnostic settings.
From your list of available resources, select the resource that you want to configure for log collection, and then select +Add diagnostic setting.
c. Set the following parameters:
Diagnostic setting name: Specify a name for your Diagnostic setting.
Logs Categories/Metrics: The options listed are dependent on the type of logs you want to configure. For Activity logs and Microsoft Entra ID logs and Microsoft Entra ID Sign-in logs, the option is called Logs Categories, and for Resource logs it's called Metrics.
Log typeLog categories/metricsActivity logs
Select from the list of applicable Activity log categories, the ones that you want to configure your designated resource to collect. We recommend selecting all of the options.
Administrative
Security
ServiceHealth
Alert
Recommendation
Policy
Autoscale
ResourceHealth
Microsoft Entra ID Activity logs and Microsoft Entra ID Sign-in logs
Select from the list of applicable Microsoft Entra ID Activity and Microsoft Entra ID Sign-in Logs Categories, the ones that you want to configure your designated resource to collect. You can select any of the following categories to collect these types of Microsoft Entra ID logs.
Microsoft Entra ID Activity logs:
AuditLogs
Microsoft Entra ID Sign-in logs:
SignInLogs
NonInteractiveUserSignInLogs
ServicePrincipalSignInLogs
ManagedIdentitySignInLogs
ADFSSignInLogs
Resource logs, including AKS audit logs
The list displayed is dependent on the resource that you selected. We recommend selecting all the options available for the resource.
Destination details: Select Stream to event hub, where additional parameters are displayed that you need to configure. Ensure that you set the following parameters using the same settings for the Azure Event Hub that you created for the collection.
Subscription: Select the applicable Subscription for the Azure Event Hub.
Event hub namespace: Select the applicable Subscription for the Azure Event Hub.
(Optional) Event hub name: Specify the name of your Azure Event Hub.
Event hub policy: Select the applicable Event hub policy for your Azure Event Hub.
d. Save your settings.
Task 2. Create and configure the Managed Identity in Azure
If you select Managed Identity as your authentication method, you must create a User-Assigned Managed Identity (UAMI) in Azure and configure workload identity federation.
For detailed, step-by-step instructions and Azure CLI examples, see Create the User-Assigned Managed Identity for Azure Event Hub.
Create the UAMI: In the Azure Portal or CLI, create a User-Assigned Managed Identity and record the Client ID and Principal ID.
Configure Federation: In the UAMI's Federated credentials settings, add a credential. In the Subject field, paste the service account identifier you copied by clicking Identifier in the Copy service account identifier field in Cortex Cloud (as detailed in Task 3 below).
Grant Permissions: Assign the Storage Blob Data Contributor role for your storage account and the Azure Event Hubs Data Receiver role for your Event Hub entity to the UAMI.
Task 3. Enable the Azure Event Hub collection in Cortex Cloud
Navigate to Settings → Data Sources & Integrations.
Click + Add New, search for Azure Event Hub, then hover over it and click Add.
Set these parameters:
Name: Specify a descriptive name for your log collection configuration.
Authentication Method: Select the method used to authenticate with Azure Event Hub.
Managed Identity (default): Authenticates using Microsoft Entra ID managed identity. This aligns with Microsoft's recommended security model and avoids long-lived shared secrets.
Connection String (SAS): Authenticates using a shared access signature.
(Managed Identity only) Event Hub Namespace: Specify the namespace of your event hub.
(Managed Identity only) Event Hub Name: Specify the name of your Azure Event Hub.
(Managed Identity only) Storage Account Name: Specify the name of the storage account used for lease management and checkpointing.
(Managed Identity only) Client ID: Specify the client ID for your managed identity.
(Managed Identity only) Tenant ID: Specify the tenant ID for your Azure environment.
(Managed Identity only) Audience: Specify the audience for the token (such as,
api://AzureADTokenExchange).(Managed Identity only) Copy service account identifier: Click Identifier to copy the service account identifier required for role assignment in Azure.
(FedRAMP only) Cloud Partition: Select the Azure partition where your resources are located (Commercial or Government).
(Connection String only) Event Hub Connection String: Specify your event hub’s connection string for the designated policy.
(Connection String only) Storage Account Connection String: Specify your storage account’s connection string for the designated policy.
Consumer Group: Specify your event hub’s consumer group.
Log Format: Select the log format for the logs collected from the Azure Event Hub as Raw, JSON, CEF, LEEF, Cisco-asa, or Corelight.
Vendor and Product: Specify the Vendor and Product for the type of logs you are ingesting. The Vendor and Product are used to define the name of your Cortex Query Language (XQL) dataset (
<vendor>_<product>_raw). The Vendor and Product values vary depending on the Log Format selected. To uniquely identify the log source, consider changing the values if the values are configurable.Use audit logs in analytics (optional): For enhanced cloud protection, select the checkbox to normalize and enrich Azure Event Hub audit logs (default). If selected, Cortex Cloud normalizes and enriches Azure Event Hub audit logs with other Cortex Cloud authentication stories across all cloud providers using the same format. You can query this normalized data with XQL Search using the
cloud_audit_logsdataset.
Click Test to validate access, and then click Enable. When events start to come in, a green check mark appears underneath the Azure Event Hub configuration with the amount of data received.
Last updated
Was this helpful?
