According to the document here, the asterisk wildcard is supported and hence it should work in eg.
*[EventData[Data[@Name='TargetUserName'] ='User1*']]
but I cannot get any wildcard filter to work – has anyone been able to do this?
eventviewerwindows-event-logxml
According to the document here, the asterisk wildcard is supported and hence it should work in eg.
*[EventData[Data[@Name='TargetUserName'] ='User1*']]
but I cannot get any wildcard filter to work – has anyone been able to do this?
Best Answer
The XPath selector must begin with *, however you cannot use * to filter fields as Xpath 1.0 has no
contains
operator.https://blogs.technet.microsoft.com/askds/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer/