简体   繁体   中英

How to obtain event logs for particular application from Windows Event Viewer

I'm implementing an application that works similar to Windows Event Viewer. I mean that it monitors System Event Logs and Application Event logs with the help of EventLog and EventLogEntry classes.

Is it possible to obtain Application Event logs for particular process (for example Chrome)?

In the list of log entries I can find different Sources like "Winlogon" , "WMI" , "MSSQL$SQLEXPRESS" and so on, but not the name of particular app.

Application name is not recorded in the event log entries. In fact, even the sources are not a reliable indicator, because you can write your own message with any source you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM