Hi, i have exported windows Sysmon event logs as XML (as attached) having problems with parsing the part, the Xpath query depends on the number, well, not all logs have the same Data Names with the same order… Is there a way to have a proper parsing with proper field names in single quotes?
What is your expected output in this case? The Xpath queries you refer to relates to these fields, but I take it you want to find those based on their name (RuleName/ UtcTime)?
What do you mean with single quotes? Something like [@name=‘RuleName’] to search for the attribute name rather that based on it’s position in the xml?