Use the Streaming API with Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn
In brief
The page updates its title, description, terminology, links, and setup instructions for using the Streaming API with Defender for Business and Microsoft 365 Business Premium.
What Defender admins need to know
Administrators get clearer guidance on prerequisites and configuring Azure Event Hubs destinations.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Use the streamingStreaming API with Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn
If your organization has a Security Operations Center (SOC), the ability toyou can use the Microsoft Defender for Endpoint streaming API is available forwith Defender for Business and Microsoft 365 Business Premium. The Microsoft Defender for Endpoint streaming API enables you to stream data, such as device file, registry, network, sign-in events, and more to one of the following services:
- Microsoft Sentinel: A scalable, cloud-native solution that provides security information and event management (SIEM) and security orchestration, automation, and response (SOAR) capabilities.
- Azure Event Hubs: A modern, big data streaming platform and event ingestion service that can seamlessly integrate with other Azure and Microsoft services. For example, Azure Stream Analytics, Power BI, and Azure Event Grid, along with outside services like Apache Spark.
- Azure Storage: Microsoft's cloud storage solution for modern data storage scenarios, with highly available, massively scalable, durable, and secure storage for a variety of data objects in the cloud.
WithBy using the Microsoft Defender for Endpoint streaming API, you can use advanced hunting and attack detection with Defender for Business and Microsoft 365 Business Premium. The streaming API enables security operations centers to view more data about devices, understand better how an attack occurred, and take steps to improve device security.
Use the streaming API with Microsoft Sentinel
Microsoft Sentinel is a paid service. Several plans and pricing options are available. See Microsoft Sentinel pricing.
Make sureEnsure thatDefender for Business isyou set up andconfigured,configure Defender for Business, and thatdevices are already onboarded.you onboard devices. See Set up and configure Microsoft Defender for Business.- Create a Log Analytics workspace to use with Microsoft Sentinel. See Create a Log Analytics workspace.
- Onboard to Microsoft Sentinel. See Quickstart: Onboard Microsoft Sentinel.
- Enable the Microsoft Defender connector. See Connect data from Microsoft Defender to Microsoft Sentinel.
Use the streaming API with Event Hubs
To use Azure Event Hubs requires, you need an Azure subscription. Before you begin, make sure toensure you create an event hub in your organization. Then, sign in to the Azure portal, go to Subscriptions > Your subscription > Resource Providers > Register to Microsoft.insights.
To configure streaming to Azure Event Hubs, complete the following steps.
Select Add data export settings.
Choose a name for your new settings.
Choose Forward events to Azure Event Hubs.
TypeEnter your Event Hubs name and your Event Hubs ID.Note
LeavingIf you leave the Event Hubs name fieldemptyempty, the system creates an event hub for each category in the selected namespace. If you don're not usingt use a Dedicated Event Hubs Cluster(a, which is a single-tenant deployment with dedicatedcapacity), keep in mindcapacity, remember that there's a limit of 10 Event Hubs namespaces.To get your Event Hubs ID, go to your
AzureEvent Hubs namespace page in the Azure portal. On the Properties tab, copy the text under ID.Choose the events you want to stream and then select Save.
View the event schema in Azure Event Hubs
The following JSON sample shows the format of each event hub message that Azure Event Hubs receives when event forwarding is enabled. Each message contains a records array with one or more event entries:
{
}
Each event hub message in Azure Event Hubs contains a list of records. Each record contains the event name, the time Defender for Business received the event, the organization to which it belongs (you get events from your organization only), and the event in JSON format in a property called "properties". For more information about the schema of Advanced Hunting events streamed to Azure Event Hubs, see Proactively hunt for threats with advanced hunting in Microsoft Defender.
Use the streaming API with Azure Storage
Note
Azure Storage requires an Azure subscription. Before you begin, make sure toensure you create a Storage account in your organization. Then, sign in to your Azure organization, and go to Subscriptions > Your subscription > Resource Providers > Register to Microsoft.insights.
Enable raw data streaming
- Select Add data export settings.
- Choose a name for your new settings.
- Choose Forward events to Azure Storage.
- Type your Storage Account Resource ID.
In order toTo get your Storage Account Resource ID, go to your Storage account page in the Azure portal. Then, on the Properties tab, copy the text under Storage account resource ID. - Choose the events you want to stream and then select Save.
View the event schema in Azure Storage
@@ -1,6 +1,6 @@ --- layout: Conceptual-title: Use the streaming API with Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn+title: Use the Streaming API with Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn canonicalUrl: https://learn.microsoft.com/en-us/defender-business/mdb-streaming-api breadcrumb_path: /defender-business/breadcrumb/toc.json feedback_system: Standard@@ -8,7 +8,7 @@ permissioned-type: public feedback_product_url: https://techcommunity.microsoft.com/t5/security-compliance-and-identity/ct-p/MicrosoftSecurityandCompliance uhfHeaderId: MSDocsHeader-MicrosoftDefender manager: bagol-description: The Defender for Endpoint streaming API is available for Defender for Business and Microsoft 365 Business Premium. Stream of device file, registry, network, sign-in events, and other data to Azure Event Hubs, Azure Storage, and Microsoft Sentinel to support advanced hunting and attack detection.+description: Use the Defender for Business streaming API to send device, network, and sign-in events to Microsoft Sentinel, Event Hubs, or Azure Storage. author: chrisda ms.author: chrisda ms.date: 2026-07-03T00:00:00.0000000Z@@ -50,15 +50,15 @@ spProducts: platformId: 59c9a31b-b191-3c57-2d09-26480cb3484e --- -# Use the streaming API with Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn+# Use the Streaming API with Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn -If your organization has a Security Operations Center (SOC), the ability to use the [Microsoft Defender for Endpoint streaming API](/en-us/defender-endpoint/api/raw-data-export) is available for [Defender for Business](mdb-overview) and [Microsoft 365 Business Premium](/en-us/microsoft-365/business-premium/m365bp-overview). The Microsoft Defender for Endpoint streaming API enables you to stream data, such as device file, registry, network, sign-in events, and more to one of the following services:
+If your organization has a Security Operations Center (SOC), you can use the [Microsoft Defender for Endpoint streaming API](/en-us/defender-endpoint/api/raw-data-export) with [Defender for Business](mdb-overview) and [Microsoft 365 Business Premium](/en-us/microsoft-365/business-premium/m365bp-overview). The Microsoft Defender for Endpoint streaming API enables you to stream data, such as device file, registry, network, sign-in events, and more to one of the following services:
- Microsoft Sentinel: A scalable, cloud-native solution that provides security information and event management (SIEM) and security orchestration, automation, and response (SOAR) capabilities.
-- Azure Event Hubs: A modern, big data streaming platform and event ingestion service that can seamlessly integrate with other Azure and Microsoft services. For example, Stream Analytics, Power BI, and Event Grid, along with outside services like Apache Spark.
+- Azure Event Hubs: A modern, big data streaming platform and event ingestion service that can seamlessly integrate with other Azure and Microsoft services. For example, Azure Stream Analytics, Power BI, and Azure Event Grid, along with outside services like Apache Spark.
- [Azure Storage](/en-us/azure/storage/common/storage-introduction): Microsoft's cloud storage solution for modern data storage scenarios, with highly available, massively scalable, durable, and secure storage for a variety of data objects in the cloud.
-With the Microsoft Defender for Endpoint streaming API, you can use [advanced hunting](/en-us/defender-xdr/advanced-hunting-overview) and [attack detection](/en-us/defender-endpoint/overview-endpoint-detection-response) with Defender for Business and Microsoft 365 Business Premium. The streaming API enables security operations centers to view more data about devices, understand better how an attack occurred, and take steps to improve device security.
+By using the Defender for Endpoint streaming API, you can use [advanced hunting](/en-us/defender-xdr/advanced-hunting-overview) and [attack detection](/en-us/defender-endpoint/overview-endpoint-detection-response) with Defender for Business and Microsoft 365 Business Premium. The streaming API enables security operations centers to view more data about devices, understand better how an attack occurred, and take steps to improve device security.
## Use the streaming API with Microsoft Sentinel
@@ -68,14 +68,14 @@ Note
[Microsoft Sentinel](/en-us/azure/sentinel/overview) is a paid service. Several plans and pricing options are available. See [Microsoft Sentinel pricing](https://www.microsoft.com/security/pricing/microsoft-sentinel/).
-1. Make sure that Defender for Business is set up and configured, and that devices are already onboarded. See [Set up and configure Microsoft Defender for Business](mdb-setup-configuration).
+1. Ensure that you set up and configure Defender for Business, and that you onboard devices. See [Set up and configure Microsoft Defender for Business](mdb-setup-configuration).
2. Create a Log Analytics workspace to use with Microsoft Sentinel. See [Create a Log Analytics workspace](/en-us/azure/azure-monitor/logs/quick-create-workspace?tabs=azure-portal).
3. Onboard to Microsoft Sentinel. See [Quickstart: Onboard Microsoft Sentinel](/en-us/azure/sentinel/quickstart-onboard).
4. Enable the Microsoft Defender connector. See [Connect data from Microsoft Defender to Microsoft Sentinel](/en-us/azure/sentinel/connect-microsoft-365-defender?tabs=MDE).
## Use the streaming API with Event Hubs
-[Azure Event Hubs](/en-us/azure/event-hubs/event-hubs-about) requires an Azure subscription. Before you begin, make sure to create an [event hub](/en-us/azure/event-hubs/) in your organization. Then, sign in to the [Azure portal](https://ms.portal.azure.com/), go to **Subscriptions** > **Your subscription** > **Resource Providers** > **Register to Microsoft.insights**.
+To use [Azure Event Hubs](/en-us/azure/event-hubs/event-hubs-about), you need an Azure subscription. Before you begin, ensure you create an [event hub](/en-us/azure/event-hubs/) in your organization. Then, sign in to the [Azure portal](https://ms.portal.azure.com/), go to **Subscriptions** > **Your subscription** > **Resource Providers** > **Register to Microsoft.insights**.
To configure streaming to Azure Event Hubs, complete the following steps.
@@ -84,18 +84,18 @@ To configure streaming to Azure Event Hubs, complete the following steps. 3. Select **Add data export settings**.
4. Choose a name for your new settings.
5. Choose **Forward events to Azure Event Hubs**.
-6. Type your **Event Hubs name** and your **Event Hubs ID**.
+6. Enter your **Event Hubs name** and your **Event Hubs ID**.
Note
- Leaving the Event Hubs name field empty creates an event hub for each category in the selected namespace. If you're not using a [Dedicated Event Hubs Cluster](/en-us/azure/event-hubs/event-hubs-dedicated-overview) (a single-tenant deployment with dedicated capacity), keep in mind that there's a limit of 10 Event Hubs namespaces.
+ If you leave the Event Hubs name field empty, the system creates an event hub for each category in the selected namespace. If you don't use a [Dedicated Event Hubs Cluster](/en-us/azure/event-hubs/event-hubs-dedicated-overview), which is a single-tenant deployment with dedicated capacity, remember that there's a limit of 10 Event Hubs namespaces.
- To get your **Event Hubs ID**, go to your Azure Event Hubs namespace page in the [Azure portal](https://ms.portal.azure.com/). On the **Properties** tab, copy the text under **ID**.
+ To get your **Event Hubs ID**, go to your Event Hubs namespace page in the [Azure portal](https://ms.portal.azure.com/). On the **Properties** tab, copy the text under **ID**.
7. Choose the events you want to stream and then select **Save**.
### View the event schema in Azure Event Hubs
-The following JSON sample shows the format of each event hub message that Azure Event Hubs receives when event forwarding is enabled. Each message contains a `records` array with one or more event entries:
+The following JSON sample shows the format of each event hub message that Event Hubs receives when event forwarding is enabled. Each message contains a `records` array with one or more event entries:
```json
{
@@ -111,7 +111,7 @@ The following JSON sample shows the format of each event hub message that Azure }
```
-Each event hub message in Azure Event Hubs contains a list of records. Each record contains the event name, the time Defender for Business received the event, the organization to which it belongs (you get events from your organization only), and the event in JSON format in a property called "**properties**". For more information about the schema of Advanced Hunting events streamed to Azure Event Hubs, see [Proactively hunt for threats with advanced hunting in Microsoft Defender](/en-us/defender-xdr/advanced-hunting-overview).
+Each event hub message in Azure Event Hubs contains a list of records. Each record contains the event name, the time Defender for Business received the event, the organization to which it belongs (you get events from your organization only), and the event in JSON format in a property called `properties`. For more information about the schema of Advanced Hunting events streamed to Azure Event Hubs, see [Proactively hunt for threats with advanced hunting in Microsoft Defender](/en-us/defender-xdr/advanced-hunting-overview).
## Use the streaming API with Azure Storage
@@ -119,7 +119,7 @@ To configure streaming to Azure Storage, complete the following steps.
Note
-[Azure Storage](/en-us/azure/storage/common/storage-introduction) requires an Azure subscription. Before you begin, make sure to create a [Storage account](/en-us/azure/storage/common/storage-account-overview) in your organization. Then, sign in to your [Azure organization](https://ms.portal.azure.com/), and go to **Subscriptions** > **Your subscription** > **Resource Providers** > **Register to Microsoft.insights**.
+[Azure Storage](/en-us/azure/storage/common/storage-introduction) requires an Azure subscription. Before you begin, ensure you create a [Storage account](/en-us/azure/storage/common/storage-account-overview) in your organization. Then, sign in to your [Azure organization](https://ms.portal.azure.com/), and go to **Subscriptions** > **Your subscription** > **Resource Providers** > **Register to Microsoft.insights**.
### Enable raw data streaming
@@ -130,7 +130,7 @@ Raw data streaming forwards security event data from Defender for Business direc 3. Select **Add data export settings**.
4. Choose a name for your new settings.
5. Choose **Forward events to Azure Storage**.
-6. Type your **Storage Account Resource ID**. In order to get your **Storage Account Resource ID**, go to your Storage account page in the [Azure portal](https://ms.portal.azure.com/). Then, on the **Properties** tab, copy the text under **Storage account resource ID**.
+6. Type your **Storage Account Resource ID**. To get your **Storage Account Resource ID**, go to your Storage account page in the [Azure portal](https://ms.portal.azure.com/). Then, on the **Properties** tab, copy the text under **Storage account resource ID**.
7. Choose the events you want to stream and then select **Save**.
### View the event schema in Azure Storage
