加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-event-log – 如何使用通配符过滤Windows事件日志?

发布时间:2020-12-14 00:39:15 所属栏目:Windows 来源:网络整理
导读:根据文档 here,支持星号通配符,因此它应该在例如. * [EventData [Data [@ Name =’TargetUserName’] =’User1 *’]] 但我不能让任何通配符过滤器工作 – 有没有人能够这样做? XPath选择器必须以*开头,但是您不能使用*来过滤字段,因为Xpath 1.0没有包含运算
根据文档 here,支持星号通配符,因此它应该在例如.

* [EventData [Data [@ Name =’TargetUserName’] =’User1 *’]]

但我不能让任何通配符过滤器工作 – 有没有人能够这样做?

XPath选择器必须以*开头,但是您不能使用*来过滤字段,因为Xpath 1.0没有包含运算符.

https://blogs.technet.microsoft.com/askds/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer/

XPath 1.0 Limitations:
Windows Event Log supports a subset of XPath 1.0. There are limitations to what functions work in the query. For instance,you can use the position,Band,and timediff functions within the query but other functions like starts-with and contains are not currently supported.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读