从路径读取事件日志文件 [英] Read Event log file from path
问题描述
我的问题与该问题非常相似如何打开以编程方式记录事件日志? 除了我要记录什么.我需要从多个未连接的计算机创建日志条目数据库.我得到.evtx文件,然后尝试处理它们.现在,我正在从导出的xml文件中执行此操作.但是我想跳过到xml转换部分.我已经阅读了 https://msdn.microsoft.com /en-us/library/System.Diagnostics.EventLog.aspx 文章,但我没有找到我想要的东西.有没有一种方法可以做我想要的而无需转换为xml?
My question is very similar to this one How do you open the event log programatically? Except i'm logging anything. I need to create db of Log Entries from multiple unconnected machines. I get .evtx files then i try to process them. Right now i'm doing it from exported xml files. But i would like to skip the to xml conversion part. I've read the https://msdn.microsoft.com/en-us/library/System.Diagnostics.EventLog.aspx article but i didn't find what i was looking for. Is there a way to do what i want without converting to xml?