Forum Discussion
Data Collection Rules and Xpath Queries Issue
mjomhaI agree the concept of DCR's is great but I think there is not too much transparency yet on how it works!
What I was able to solve is to get Windows 11 AV Standard logs into Log Analytics with a XPath Query but the Key Value Pairs like FileName, Signature, User, ect. are still nested in a big XML Field.
What is the best practice to extract only certain Values here?
Do we have to do it via. Search Level?
It would be much better to find an easy way to edit this?
Pernille-Eskebo Some more insights would be great?
- KennethMLApr 18, 2023MCT
schrauf18713
As the data (probably) goes into the Event table, you are stuck with the schema. You can approach this in diffferent ways, either create a custom table for the AV events and build the DCR rules and parser needed or create a function that parses the XML content. It could be something like this:
Event
| where Source == "AVsource"
| extend x = parse_xml(EventData)
| extend filepath = x.DataItem.EventData.File.path/Kenneth ML