Windows event logs: the events you should monitor

Failures and attacks often announce themselves early in your servers' event logs – but hardly anyone looks at them every day. Which event IDs really matter and how to keep an eye on them.

Illustration of monitoring

Every Windows server keeps a record: the event log shows when someone signs in with a wrong password, a service crashes, a disk stops responding in time or the server restarts without shutting down cleanly. Many problems show up there long before users notice anything. The catch: a single server writes hundreds of entries a day, and with ten or twenty servers hardly anyone reviews them regularly. Event Viewer usually gets opened only after something has already broken.

Why the event log is worth a look

  • Early warning: repeated disk warnings or services that keep crashing often come before an outage.
  • Security: clusters of failed logons, new members in admin groups or a cleared security log can point to an attack – or to a mistake you should know about.
  • Troubleshooting: if you know what happened before an outage, you find the cause faster.

Security: important event IDs

  • 4625 – An account failed to log on. Single failures are normal; clusters for one account or from one source are not.
  • 4740 – A user account was locked out. For domain accounts, look in the Security log of the domain controllers. A common cause is a service, scheduled task or device still using an old password.
  • 1102 – The audit log was cleared. Logged every time the Security log is cleared. There is rarely a reason to do this in daily operations; Microsoft recommends investigating every occurrence.
  • 4728, 4732, 4756 – A member was added to a security-enabled group (global, local or universal). Especially important for groups such as Domain Admins or the local Administrators.
  • 7045 – A service was installed (System log, source Service Control Manager). Normal during updates and software installations – an unknown new service on a server, however, is a red flag.

Important: many security events are only generated when the matching audit policy is enabled, for example "Audit Logon" or "Audit Security Group Management" under Advanced Audit Policy Configuration. auditpol /get /category:* shows which categories are active. Check this before you rely on "nothing happened".

System and hardware: events in the System log

  • 41 (Kernel-Power) and 6008 (EventLog) – unexpected restart. The server did not shut down cleanly: a crash, a power loss or a hung system. Event 1001 additionally indicates a blue screen (bug check).
  • 153 – The IO operation was retried (related: 129). The storage subsystem responds too slowly or is overloaded – a typical early sign with RAID controllers, SANs and virtual disks.
  • 51 – An error was detected during a paging operation on a device. Sometimes harmless with removable media, but worth a look on server disks.
  • 55 (NTFS) – The file system structure is corrupt. Microsoft recommends running chkdsk and checking the hardware.
  • 7031 and 7034 – A service terminated unexpectedly. With 7031 the message also names the configured recovery action, such as restarting the service. The actual cause is usually logged at the same time in the Application log.

Backup failures also end up in the event log – for Windows Server Backup under the source Microsoft-Windows-Backup, for other backup software under its own source. Which IDs matter there depends on the product; its documentation is worth a look.

How to keep an eye on the logs

  • Event Viewer with custom views: a custom view filters by log, level and event IDs and can be imported as XML on other servers. Free and available right away – but per server, and only useful if someone actually looks.
  • Windows Event Forwarding (WEF): built into Windows. Servers forward selected events over WinRM to a collector (Windows Event Collector), where they land in the "ForwardedEvents" log; source computers can be enrolled via Group Policy. WEF collects reliably but does not evaluate anything or send reports – that part is up to you.
  • Monitoring systems and SIEM: monitoring solutions watch availability and performance and can often report individual events as well. A SIEM correlates events from many sources, detects attack patterns and alerts promptly – with corresponding effort for rollout, licenses and operation.

PriCoSoft EventLog Monitor

In many small and medium-sized environments the need lies in between: no SIEM project, but knowing every morning what happened on the servers. That is what we built EventLog Monitor for:

  • Agentless: it reads the logs with built-in Windows features (firewall rule group "Remote Event Log Management"). The service account, ideally a gMSA, needs no Domain Admin rights, just membership in "Event Log Readers".
  • Central: all servers and any Windows event log – from System and Security to DFS Replication or Hyper-V – in one database, with full-text search across all messages. Servers can be imported from Active Directory, including from several forests.
  • Rules against noise: hide known, harmless messages globally, per server or per log – with several event IDs and ID ranges in one rule. Likewise, you can limit a log to the important IDs from this list.
  • Report by e-mail: views arrive as a report on fixed weekdays and times, grouped by server, optionally with new events only and without empty mails, in German or English.
  • Alert when a server goes silent: if a server cannot be reached repeatedly, it is flagged as an alert in the overview.

To be clear: EventLog Monitor is not a SIEM. It does not correlate events and does not alert in real time – it collects at fixed intervals (hourly by default) and reports at fixed times. Events that require an audit policy are only visible to it when that policy is enabled. It runs on Windows Server 2016 or later with IIS and comes with its own database, so no SQL Server license is needed. Licensing is per installation or by number of servers, on request.

We are happy to help you choose the right events and set up monitoring for your servers.

More articles

Running a program as a Windows service: the options compared

A business application should run on the server without anyone logged on and survive every reboot. sc.exe, the old srvany, Task Scheduler or a service wrapper – what works, where the limits are and why windows suddenly become invisible.

View all articles