Windows event log over WinRM (win_eventlog)
Counts the events written to one classic event log since the previous poll, from Win32_NTLogEvent over WinRM, filtered by level and optionally by source and event id.
Transport. Under a Windows probe the device can be set to read this sensor over native WMI instead of WinRM; the query and the result are the same. The target is then set up as in the WMI setup guide instead.
What it looks like

The sensor's page after a few polls, watching a Windows Server domain controller reached over WinRM. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
events | Matching events | events | warning above 0 |
The message names the event id and source of the newest matching event.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
log | System | The classic log to read: System, Application, Security, or another log Win32_NTLogEvent exposes. |
levels | [error] | Levels to count, any of error, warning, information, audit_success, audit_failure. An empty list counts every level. |
source | none | Count only events from this source (provider name). |
event_id | none | Count only events with this event id. |
port | 5985, or 5986 with https | TCP port of the WinRM listener. |
https | false | Use the HTTPS listener instead of HTTP with message encryption. |
accept_self_signed | false | Accept an HTTPS certificate that cannot be verified. The credential has the same switch; either one is enough. |
Suggested interval: 300 seconds. Credential: Windows. Discovery adds one sensor counting errors in the System log.
How counting works
- The sensor remembers the record number it has read up to. Each poll first reads the newest record number, then the matching events after the remembered one, so an event written between the two queries is counted now rather than lost.
- The first poll only records where the log stands; its value is unknown. Events already in the log are history and never raise an alert.
- When the record numbers go backwards the log was cleared. That poll reports unknown and counting starts again from there.
- At most 5000 events are read in one poll. More than that is reported as "5000 or more".
- An empty log and a log name that does not exist look the same to WMI. Both report unknown with a message saying so.
- Only classic logs are visible through
Win32_NTLogEvent. The newer application and service logs (Microsoft-Windows-.../Operational) are not.
On the target
WinRM enabled and an account set up as in the WinRM setup guide, and member of Event Log Readers. The Security log needs more than that: on most systems only administrators or accounts with the "Manage auditing and security log" right may read it.
Failures
The WinRM failures every Windows sensor shares are listed in the setup guide. WMI may answer a query on a log the account may not read with no records rather than an error, in which case the sensor reports "empty or does not exist". If a log you know has records shows that, check the account's rights first.