You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Event Viewer可正常访问远程安全日志但Log Parser查询失败(RPC错误),求问两者连接方式差异

Event Viewer可正常访问远程安全日志但Log Parser查询失败(RPC错误),求问两者连接方式差异

我最近用Log Parser批量查询几台域控制器(DC1、DC2、DC3)的安全日志时碰了壁——查询直接失败,提示「远程过程调用失败」,但用Event Viewer(真的不想用这个工具😅)却能正常连接并查看这些远程安全日志。

我现在特别好奇:Event Viewer到底用了什么连接方式,是Log Parser没用到的?才导致两者表现差异这么大?

下面是我执行的Log Parser命令:

C:\Program Files (x86)\Log Parser 2.2>LogParser -e:1 "SELECT EventId, RecordNumber, EventId, SourceName, TO_STRING( TO_UTCTIME( TimeGenerated ), 'yyyy-MM-dd hh:mm:ss.ll' ), Strings INTO 'C:\l*.csv' FROM \\DC1\Security, \\DC2\Security, \\DC3\Security WHERE TimeGenerated >= TO_LOCALTIME( SUB( SYSTEM_TIMESTAMP(), TIMESTAMP( '1', 'd' ) ) ) AND EventId=4740 ORDER BY RecordNumber DESC"

执行后得到的错误信息:

Task aborted.
Error reading event log: The remote procedure call failed.

备注:内容来源于stack exchange,提问作者leeand00

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 09:44:04