TechBuzzPro

Windows Log Files: What They Are & How to Find Them

· 7 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Windows log files are plain-text or structured records that Windows and its applications write to disk to describe what happened on the system: errors, warnings, sign-in attempts, service starts, driver failures, update activity and more. You do not need to create them; they already exist. The practical way to read them is through Event Viewer, which is built into every modern Windows version. Open it by pressing Windows+R, typing eventvwr.msc and pressing Enter, or by searching for "Event Viewer" in the Start menu. The left pane shows a tree of logs; the main ones are under Windows Logs (Application, Security, Setup, System, Forwarded Events). If you need the raw files themselves, they live in C:\Windows\System32\winevt\Logs as .evtx files, and application-specific logs are often plain .log or .txt files in the program's own folder or in %LOCALAPPDATA%. Labels and exact wording can differ slightly by Windows version, edition and region, but the overall layout is consistent.

What You'll Need

  • A Windows 10 or Windows 11 PC (the steps also work on Windows 8.1 and 7 with minor wording differences).
  • An account with administrator rights if you want to read the Security log or open logs in protected folders; standard users can read most Application and System entries.
  • No extra software. Event Viewer and File Explorer are included with Windows.
  • Optional: a text editor such as Notepad for opening plain .log files, and a folder where you can save exported logs.

Step-by-Step

  1. Open Event Viewer. Press Windows+R, type eventvwr.msc and press Enter. If a User Account Control prompt appears, approve it. You can also right-click the Start button and choose Event Viewer from the menu on Windows 10 and 11.
  2. Get oriented in the left pane. Expand Windows Logs to see Application, Security, Setup, System and Forwarded Events. Expand Applications and Services Logs for per-component logs such as hardware events, Windows Defender and scheduled tasks. The middle pane lists individual events; the right pane holds actions like Filter Current Log and Save All Events As.
  3. Read a single event. Click any entry in the middle pane. The lower pane shows the General tab with a human-readable summary and the Details tab with the structured XML. The General tab is usually enough to understand what happened.
  4. Filter instead of scrolling. With a log selected, click Filter Current Log in the right pane. Choose a time range (for example Last hour or Last 24 hours) and tick the levels you care about: Critical, Error, Warning, Information, Verbose. Click OK. This is the single most useful skill, because unfiltered logs can contain tens of thousands of entries.
  5. Find a specific event ID. In the same Filter dialog, enter the number in the Event IDs box (for example 41 for an unexpected shutdown, 6008 for an unexpected restart, or 4625 for a failed sign-in). Event IDs are the numeric identifiers Microsoft and software vendors document; the description text tells you what the ID means in context.
  6. Search by source. Use the Event sources dropdown in the filter to narrow to a component such as Disk, Kernel-Power or a named application. This separates noise from the service you are investigating.
  7. Check the Security log for sign-ins. Open Windows Logs > Security. You need administrator rights. Look for event ID 4624 (successful logon) and 4625 (failed logon). The log is often small because audit policy controls what is recorded; if it is nearly empty, auditing is probably not enabled for the events you want.
  8. Open the raw .evtx files if needed. In File Explorer, paste C:\Windows\System32\winevt\Logs into the address bar. You will see files such as System.evtx, Application.evtx and Security.evtx. Double-clicking one opens it in Event Viewer. Do not delete or rename these files; Windows keeps them open and deleting them can break logging.
  9. Find application text logs. Many programs write plain .log or .txt files. Check the program's installation folder, its subfolder named logs, and %LOCALAPPDATA% (paste that into the File Explorer address bar and press Enter, then look for the vendor or app name). Open these with Notepad or any text editor.
  10. Export or save a log for sharing. Select the log, then click Save All Events As in the right pane and choose the .evtx format, or use Save Filtered Log File As after filtering. Save to a folder you can find later. This is the standard way to hand a log to support without giving them your whole machine.
  11. Clear a log only when you mean to. Right-click a log and choose Clear Log. This permanently deletes its entries; export first if the history matters. Clearing the Security log is also an auditable action in many environments, so avoid it on managed machines.

Common Mistakes

  • Scrolling the unfiltered log. Thousands of Information-level entries bury the few errors that matter. Always filter by level and time first.
  • Treating every red entry as a fault. Many Error events are benign, repeated, or caused by a device that was unplugged. Read the description and check whether the timestamp matches the problem you are chasing.
  • Confusing event IDs across sources. The same number can mean different things under different providers. Always note both the Source and the Event ID.
  • Deleting .evtx files to "clean up". Windows keeps these files open; deleting them can stop logging or cause errors. Use Clear Log if you must remove entries.
  • Expecting the Security log to show everything. Audit policy decides what is recorded. A quiet Security log usually means auditing is off, not that nothing happened.
  • Assuming a log file is readable text. .evtx is a binary format; open it in Event Viewer, not Notepad.

Tips

  • Note the exact time a problem occurred, then filter to a window around it. This narrows the search faster than any keyword.
  • Use Attach Task to This Event in the right pane if you want Windows to react to a specific event, such as running a script when a service stops.
  • Check Applications and Services Logs > Microsoft > Windows for component-specific logs that are more detailed than the general System log.
  • Keep exported logs in a dated folder. Support engineers can read .evtx files directly, and a saved filtered log is far smaller than the full log.
  • For plain application logs, a text editor with search (Notepad works; Notepad++ is a common free choice) makes scanning long files much easier.

Troubleshooting

  • Event Viewer will not open or shows an error. Restart the PC, then try again. If it still fails, run services.msc, find Windows Event Log, and confirm it is running; start it if it is stopped. If the service will not start, check free disk space, because a full system drive can prevent logging.
  • A log is empty or nearly empty. Confirm you are looking at the right log and that filters are not hiding entries; click Clear Filter in the right pane. For the Security log, auditing may not be enabled.
  • Access denied when opening a log. Sign in with an administrator account or right-click Event Viewer and choose Run as administrator.
  • The log is huge and slow to open. Filter by time and level before scrolling, and export a filtered copy rather than working in the full log.
  • You cannot find an application's log file. Check the program's settings or help for a "log" or "diagnostics" option, and look in its install folder and in %LOCALAPPDATA%. If the app writes nothing, it may only report through Event Viewer under Application.

Frequently Asked Questions

Where are Windows log files stored?

Core Windows logs are .evtx files in C:\Windows\System32\winevt\Logs. Application text logs are usually in the program's folder or under %LOCALAPPDATA%.

Can I read .evtx files in Notepad?

No. They are binary. Open them in Event Viewer, or export entries to a readable format from there.

Do I need administrator rights to view logs?

For Application and System logs, usually not. The Security log and some protected logs require an administrator account.

What is the difference between Event Viewer and a log file?

Event Viewer is the built-in tool that reads and displays Windows event logs. The .evtx files are the underlying data it displays.

Does clearing a log free up much space?

Rarely much. Logs are capped by size settings, and clearing them mainly removes history you may need later. Export first if in doubt.

Why do I see the same error repeated many times?

A component is failing on a schedule, such as at every startup or every hour. Note the interval and the Source, then investigate that component rather than each entry individually.