从路径读取事件日志文件 [英] Read Event log file from path

查看:78
本文介绍了从路径读取事件日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与该问题非常相似如何打开以编程方式记录事件日志? 除了我要记录什么.我需要从多个未连接的计算机创建日志条目数据库.我得到.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?

推荐答案

使用

这篇关于从路径读取事件日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆