4

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.

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

So it seems to be impossible to monitor if some critical errors or warnings in third-party application happened, doesn't it? If I understand correctly it is possible only when this third-party app writes logs to Event Viewer itself.
Windows error reporting writes an event log entry, if application had a hard crash and "send error report to microsoft" appears. You can search that message for process name. However, many applications have their own error reporting tools that may not write anything to windows event log.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.