Creating Data Collection Rule in Azure Sentinel.

Renat Khamzin 21 Reputation points
2025-07-25T08:53:15.25+00:00

Hi there.

Several days I'm trying to create Data Collection Rule to collect only specified events from event viewer.
If I specify in the DCR to collect All Security Events then I can see that logs are received and I can query/filter Logs and see Microsoft-Windows-WLAN-AutoConfig/Operational!*[System[EventID=8001]] events.

But the task is to collect not all Security Events but only events with event id 8001 from Microsoft-Windows-WLAN-AutoConfig/Operational (it is required to decrease the size of injected data).

The question is what/how I should write filter in the Edit DCR wizard in the Collect part when I choose Custom?
If I write Microsoft-Windows-WLAN-AutoConfig/Operational!*[System[EventID=8001]] then I stop to received any logs at all.

Thank you in advance for your assistancesentinel_DCR

Microsoft Security | Microsoft Sentinel
{count} votes

2 answers

Sort by: Most helpful
  1. Swaroop Kolli 3,345 Reputation points Microsoft External Staff Moderator
    2025-07-28T13:00:00.6766667+00:00

    Hello @Renat Khamzin,

    As per my understanding, you're trying to configure a Data Collection Rule (DCR) to collect only Event ID 8001 from the Microsoft-Windows-WLAN-AutoConfig/Operational log, but your current XPath filter seems to block all logs.

    The query you are using is-

    Microsoft-Windows-WLAN-AutoConfig/Operational!*[System[EventID=8001]]

    Can you please make a small modification to the query and try to use this-

    Microsoft-Windows-WLAN-AutoConfig/Operational!*[System[(EventID=8001)]]

    Please let us know if this worked or else we can troubleshoot further.

    0 comments No comments

  2. EduardsGrebezs 941 Reputation points
    2025-08-11T18:50:27.2233333+00:00

    Hi,

    To collect specific XPath Query from your machine.

    1. Have Azure Arc installed (if not Azure Machine),
    2. Select it as resource,
    3. For collection use this syntax as your has errors - Microsoft-Windows-WLAN-AutoConfig/Operational!*[System[(EventID=8001)]]
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.