When doing troubleshooting one of the best places where you will find clues about the problem is in the Event Viewer logs. And when doing research on what is going on in the background when performing certain actions in Windows, the Event Viewer will come in handy.
The challenge with Event Viewer is that there are hundreds of log files, and how do you know which one(s) to investigate?
In this blog post you will learn:
- How to use Process Monitor to figure out which the relevant event logs are, for instance when doing troubleshooting or figuring out what a specific action does in the background when researching solutions in Windows.
Method to find the relevant event logs
All event logs which are found in Event Viewer are basically files named <EventLog>.evtx and are located in C:\System32\Winevt\Logs. The key takeaway from this first part is the .evtx file ending.
The tool to use next is my favorite tool when it comes to troubleshooting and learning about stuff in Windows; and the tool is Process Monitor from Sysinternals (owned by Microsoft).
Process Monitor will gather thousands of rows of data within seconds, and this is where filtering comes in.
Crash course in Process Monitor
This is my standard procedure when using Process Monitor. Download Process Monitor if you do not already have it available.
- Start Process Monitor.
- Press Ctrl + E to pause recording events.
- Press Ctrl + X to clear out all events.
Adding the filter for identifying the event Logs
Now, to be able to identify the Event logs files that are of relevance to troubleshooting or to a specific action that you perform, using filters is the key in Process Monitor:
- In Process Monitor, press Ctrl + L to get to the filters.
- In the first drop down menu choose Path followed by contains in the next drop down and last enter .evtx
- Make sure Include is selected and click Add and OK.
Identify the relevant logs
Now you can prepare the troubleshooting step(s) or the action you want to perform and when you are ready for this:
- In Process Monitor, press Ctrl + E to start recording.
- As quickly as possible, now reproduce the problem or perform the action you want to know more about.
- Go back to Process Monitor and hit Ctrl + E to stop recording. Voila, you now have the relevant event logs to further investigate.
After you have the list above, you know exactly what event logs are being written to and you can do further analysis of these. Fire up Event Viewer – and happy hunting! 😊
Examples
Some examples when I’m using this method performing troubleshooting or researching in Windows:
- Troubleshooting failed Store app installation.
- How can I find what event logs are used when plugging in a FIDO2 security key so that I can add a scheduled task to trigger on a certain event to lock the machine when unplugged?
- What log files are written to when doing a Sync with Intune?
Summary
Using Process Monitor to find the relevant event logs is a quick and efficient way to locate where to look next for more details. This applies to both troubleshooting and when researching the inner workings of Windows and figuring out what is going on in the background.
You must be logged in to post a comment.