Log analysis basics
A log is a record of events made by a system, such as sign-ins, errors or connections. Log analysis means collecting these records, putting them in...
Windows event logs are files where the system and programs record events such as logons, errors and service changes. They help build a timeline of what happened on a machine.
Windows records important software and hardware events in a central place called the event log. Since Windows Vista the logs are saved as .evtx files, usually in C:\Windows\System32\winevt\Logs. Windows Event Viewer is the built-in program to read them.
Three classic logs exist on every system. Many extra logs sit under Applications and Services Logs, for example PowerShell, Task Scheduler and Remote Desktop logs.
Each event has an ID number. Common examples are 4624 for a successful logon, 4625 for a failed logon, 7045 for a new service installed, 1102 for the Security log cleared and 104 for another log cleared. Event 4688 records a new process, but only if that auditing is switched on.
Not every system logs the same things. Audit settings and log size limits decide what is kept. Old events are overwritten when a log is full, so the time range in a log can be short.
An examiner suspects someone logged in at night. She exports Security.evtx from the image, filters event 4624 for that time range and notes the account name and logon type. She then checks the System log for any new service installed around the same time.
The audit policy may not enable them, or the log filled up and older events were overwritten.
A successful logon. The details show the account and the logon type.
Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.