Breyta

Deila með


Set up continuous export in the Azure portal

Microsoft Defender for Cloud generates detailed security alerts and recommendations. To analyze the information that's in these alerts and recommendations, you can export them to Log Analytics in Azure Monitor, to Azure Event Hubs, or to another Security Information and Event Management (SIEM), Security Orchestration Automated Response (SOAR), or IT classic deployment model solution. You can stream the alerts and recommendations as they're generated or define a schedule to send periodic snapshots of all new data.

This article describes how to set up continuous export to a Log Analytics workspace or to an event hub in Azure.

Tip

Defender for Cloud also offers the option to do a onetime, manual export to a comma-separated values (CSV) file. Learn how to download a CSV file.

Prerequisites

Required roles and permissions:

  • Security Admin or Owner for the resource group
  • Write permissions for the target resource.
  • If you use the Azure Policy DeployIfNotExist policies, you must have permissions that let you assign policies.
  • To export data to Event Hubs, you must have Write permissions on the Event Hubs policy.
  • To export to a Log Analytics workspace:
    • If it has the SecurityCenterFree solution, you must have a minimum of Read permissions for the workspace solution: Microsoft.OperationsManagement/solutions/read.

    • If it doesn't have the SecurityCenterFree solution, you must have write permissions for the workspace solution: Microsoft.OperationsManagement/solutions/action.

      Learn more about Azure Monitor and Log Analytics workspace solutions.

Set up continuous export in the Azure portal

You can set up continuous export on the Microsoft Defender for Cloud pages in the Azure portal, by using the REST API, or at scale by using provided Azure Policy templates.

To set up a continuous export to Log Analytics or Azure Event Hubs by using the Azure portal:

  1. On the Defender for Cloud resource menu, select Environment settings.

  2. Select the subscription that you want to configure data export for.

  3. In the resource menu under Settings, select Continuous export.

    Screenshot that shows the export options in Microsoft Defender for Cloud.

    The export options appear. There's a tab for each available export target, either event hub or Log Analytics workspace.

  4. Select the data type you'd like to export, and choose from the filters on each type (for example, export only high-severity alerts).

  5. Select the export frequency:

    • Streaming. Assessments are sent when a resource’s health state is updated (if no updates occur, no data is sent).
    • Snapshots. A snapshot of the current state of the selected data types that are sent once a week per subscription. To identify snapshot data, look for the field IsSnapshot.

    If your selection includes one of these recommendations, you can include the vulnerability assessment findings with them:

    To include the findings with these recommendations, set Include security findings to Yes.

    Screenshot that shows the Include security findings toggle in a continuous export configuration.

  6. Under Export target, choose where you'd like the data saved. Data can be saved in a target of a different subscription (for example, in a central Event Hubs instance or in a central Log Analytics workspace).

    You can also send the data to an event hub or Log Analytics workspace in a different tenant

  7. Select Save.

Note

Log Analytics supports only records that are up to 32 KB in size. When the data limit is reached, an alert displays the message Data limit has been exceeded.

In this article, you learned how to configure continuous exports of your recommendations and alerts. You also learned how to download your alerts data as a CSV file.

To see related content: