Microsoft Defender for Endpoint
Endpoint protection

Create and manage custom data collection rules in Microsoft Defender for Endpoint

In brief

The article now explains that custom rules capture endpoint events beyond default telemetry and send them to Microsoft Sentinel. It also adds clearer guidance for querying custom event tables, monitoring performance, editing rules, and enabling or disabling them.

What Defender admins need to know

No action is required. Administrators can use the expanded guidance when managing custom data collection rules.

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.

Create and manage custom data collection rules in Microsoft Defender for Endpoint

[!INCLUDE Prerelease information]

Custom data collection rules let you capture specific endpoint events beyond default telemetry and send them to Microsoft Sentinel for advanced hunting and investigation. This article showswalks you how to createthrough creating, editing, monitoring, and manage custom data collectiondeleting these rules in the Microsoft Defender portal.

Monitor and troubleshoot

After deployingyou deploy custom data collection rules, monitor their performancecheck how they perform and troubleshootfix any issues.

Verify rule deployment

To check if a rule is collecting data from a specific device, use the following KQL query theto search all custom event tables in advanced hunting:advanced hunting, the query-based tool in Microsoft Defender for investigating device data, and verify that the rule is generating events:

search in (DeviceCustomFileEvents, DeviceCustomScriptEvents, DeviceCustomNetworkEvents, DeviceCustomProcessEvents, DeviceCustomImageLoadEvents) "your_device_id"

### Monitor rule performance

Use the following checks to monitor rule performance:

- **Check event volume**: Query custom event tables to see how many events each rule is collecting
- **Review collection status**: Monitor whether devices are approaching the 75,000 event per rule per day limit
- **Validate targeting**: Ensure rules are deploying to the correct devices based on your dynamic tags

### Edit a rule

To edit an existing custom data collection rule:

1. Navigate to **Settings** > **Endpoints** > **Rules** > **Custom Data Collection**
2. Select the rule you want to edit
3. Select **Edit**

### Enable or disable a rule

To enable or disable a custom data collection rule:

1. In **Custom Data Collection**, select the rule
2. Select or clear the **Enable** checkbox under the rule description