Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR

Ingest logs from Microsoft Azure Event Hub

Ingest logs from Microsoft Azure Event Hub into Cortex XDR.

License

Requires the Data Collection add-on.

Cortex XDR 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 XDR based on your Microsoft Azure Event Hub configuration. After you set up data collection, Cortex XDR begins receiving new logs and data from the source.

When Cortex XDR 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 XDR to normalize Azure Event Hub audit logs, including Azure Kubernetes Service (AKS) audit logs, with other Cortex XDR 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 XDR to normalize, you can change the default dataset. Cortex XDR can also generate Cortex XDR 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

Warning

The following table provides a brief description of the different types of Azure audit logs you can collect.

Note

For more information on Azure Event Hub audit logs, see Overview of Azure platform logs.

Type of data
Description

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

We recommend using the Office 365 Azure AD Authentication Logs option along with the Azure Event Hub collector to ensure full detection coverage.

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.

Prerequisite

Configure the Azure Event Hub collection in Cortex XDR

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 XDR.

Task 1. Gather Event Hub details in Azure

  1. In the Microsoft Azure console, open the Event Hubs page, and select the Azure Event Hub that you created for collection in Cortex XDR.

  2. Record the following parameters from your configured event hub, which you will need when configuring data collection in Cortex XDR.

  • Your event hub’s consumer group:

    1. Select Entities → Event Hubs, and select your event hub.

    2. Select Entities → Consumer groups, and select your event hub.

    3. In the Consumer group table, copy the applicable value listed in the Name column for your Cortex XDR data collection configuration.

  • If you plan to use Connection String (SAS) authentication, record the following:

    1. (Event Hub Connection String): Select your Event Hub → Settings → Shared access policies. Select the applicable policy and copy the Connection string-primary key.

    2. (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:

    1. Azure Details: Record the Client ID and Tenant ID from your Azure Entra ID configuration.

    2. Audience: Record the Audience (typically api://AzureADTokenExchange).

  1. Configure diagnostic settings for the relevant log types you want to collect and then direct these diagnostic settings to the designated Azure Event Hub.

    1. Open the Microsoft Azure console.

    2. Your navigation is dependent on the type of logs you want to configure.

Log type
Navigation path

Activity 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

  1. Select Azure services → Azure Active Directory.

  2. Select Monitoring → Diagnostic settings, and +Add diagnostic setting.

Resource logs, including AKS audit logs

  1. Search for Monitor, and select Settings → Diagnostic settings.

  2. From your list of available resources, select the resource that you want to configure for log collection, and then select +Add diagnostic setting.

Note

For every resource that you want to configure, you'll have to repeat this step, or use Azure policy for a general configuration.

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 type
Log categories/metrics

Activity 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

Note

There are additional log categories displayed. We recommend selecting all the available options.

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.

  1. Create the UAMI: In the Azure Portal or CLI, create a User-Assigned Managed Identity and record the Client ID and Principal ID.

  2. 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 XDR (as detailed in Task 3 below).

  3. 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 XDR

  1. Navigate to Settings → Data Sources & Integrations.

  2. Click + Add New, search for Azure Event Hub, then hover over it and click Add.

  3. 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.

      Note

      When you select Use audit logs in analytics, the log format is automatically configured. As a result, the Log Format option is removed and is no longer available to configure (default).

    • 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.

      Note

      When you select Use audit logs in analytics, the Vendor and Product fields are automatically configured, so these fields are removed as available options (default).

    • 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 XDR normalizes and enriches Azure Event Hub audit logs with other Cortex XDR authentication stories across all cloud providers using the same format. You can query this normalized data with XQL Search using the cloud_audit_logs dataset.

  4. 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?