Windows Event Forwarding: central logs without an agent
Getting Windows logs off the endpoint is usually framed as “deploy the SIEM agent everywhere”. That works, but it means one more agent on every machine, one more thing to patch and one more license line. Windows already ships a forwarding mechanism: Windows Event Forwarding (WEF) sends selected events from every machine to a Windows Event Collector (WEC) server, using services that are built in. A SIEM then reads from a handful of collectors instead of thousands of endpoints.
This article covers how it works and when it makes sense. We describe it from Microsoft’s documentation, primarily Use Windows Event Forwarding to help with intrusion detection, and the figures below come from there.
How it works
Three pieces:
- The source — any Windows machine. Its built-in forwarding client reads its own event logs and sends what a subscription asks for.
- The collector — a Windows server running the Windows Event Collector service. Received events land in its Forwarded Events log.
- The subscription — defined on the collector: which machines, which events (as an XPath query), and how often to deliver.
Transport is WinRM (WS-Management), on port 5985 for HTTP or 5986 for HTTPS. In a domain, the connection is authenticated and encrypted with Kerberos by default, with NTLM as a fallback that Group Policy can disable — even when HTTP is selected. HTTPS with certificates is for machines where Kerberos is not an option, such as workgroup systems.
Push or pull
A subscription is one or the other:
| Mode | How it works | When to use it |
|---|---|---|
| Source-initiated (push) | Machines learn the collector’s address from Group Policy and connect to it. Access is controlled per subscription by an ACL of computer accounts or groups. | Almost always. Scales, survives laptops moving on and off the network. |
| Collector-initiated (pull) | The collector connects to a fixed list of machines with credentials that can read their logs. | A small, fixed set of servers you want to watch closely. |
Push is what Microsoft recommends for scale and flexibility, and the rest of this article assumes it.
What Group Policy has to do
Microsoft lists the minimum client configuration as three steps:
- Point the client at the collector. Computer Configuration > Administrative Templates > Windows Components > Event Forwarding > Configure target Subscription Manager, with a value like:
Server=http://wec01.corp.example:5985/wsman/SubscriptionManager/WEC,Refresh=60Refreshis how often, in seconds, the client checks for subscription changes. - Start the WinRM service on the clients.
- Let the forwarder read the Security log. The forwarding client runs as Network Service, which cannot read the Security log by default. Add Network Service to the built-in Event Log Readers group (or adjust the channel’s access list). Skipping this step is the most common reason a subscription forwards System events but nothing from Security.
On the collector: wecutil qc configures the Windows Event Collector service, then create the subscription in Event Viewer or with wecutil. Give the subscription’s ACL a security group containing computer accounts, so adding a machine to the group is all it takes to enroll it.
WEF only forwards what exists
This is the part most guides skip: WEF is passive. It cannot change audit policy, enable a disabled log, or make a log bigger. If Process Creation auditing is off, no subscription will ever deliver a 4688. The same goes for PowerShell script block logging and Sysmon: they have to be enabled on the source first. The audit and logging articles on this site — audit policy, PowerShell logging, Sysmon — are prerequisites, not alternatives.
One more consequence: the source’s local event log is the buffer. If a laptop is offline for a week and its Security log wraps, the oldest events are gone, and the collector gets no notice that anything was lost. Size the source logs for the longest offline period you expect.
Choosing what to forward
A subscription is a set of XPath queries, and the query is where cost is controlled. Microsoft’s guidance suggests two subscriptions:
- a baseline subscription that every machine joins: process creation, logons, account and group changes, service installs, scheduled tasks, log clearing and similar high-value, moderate-volume events;
- a targeted subscription for a short list of machines under suspicion, collecting much more (network logons, DNS client queries, process exits) for as long as the investigation lasts.
Their article includes fully annotated query lists for both, which are a sensible starting point. Queries can also suppress noise inside a query, for example network share access to IPC$.
Two delivery settings affect cost and latency:
- Format. The default Rendered Text includes the full human-readable description and makes each event two to three times larger. The Events format sends only the event XML; Microsoft notes it “can more than double the event volume a single WEC server can accommodate”. Your SIEM’s parser has to handle the format you pick.
- Delivery optimization. Normal batches five items with a 15-minute timeout; Minimize Latency pushes with a 30-second timeout; Minimize Bandwidth pushes every six hours. For security monitoring, Minimize Latency or a custom setting is usually what you want — and the event versus ingestion time note explains why delay matters for scheduled rules.
How far one collector goes
Microsoft’s rule of thumb for a stable collector on commodity hardware is about 3,000 events per second on average, across all subscriptions. The limits are disk write speed (the collector writes everything to a local log file), the number of concurrent TCP connections, and the registry: the collector keeps a bookmark key per source machine, and Microsoft warns that Event Viewer becomes unusable past 50,000 lifetime sources per subscription and the registry unreadable past 100,000. Plan several collectors for a large estate, and prune inactive sources.
For high availability, publish two collector addresses in the Group Policy setting; clients forward to both.
Getting events from the collector into a SIEM
The collector is not the SIEM. Something still has to read Forwarded Events and ship it on: the SIEM’s own agent on the collector (one agent instead of thousands), a log shipper, or a native connector where the SIEM offers one. The trade-off is that every event now carries two host names — the original Computer field and the collector’s — so make sure your parser takes the host from the event, not from the shipper.
Testing
On a client, after Group Policy has applied:
gpupdate /force
Get-WinEvent -LogName 'Microsoft-Windows-Forwarding/Operational' -MaxEvents 20 |
Select-Object TimeCreated, Id, Message
That log records subscription success, warnings and errors; it is the first place to look when a machine is missing. On the collector, wecutil gr <subscription> shows the runtime status of every source. Then generate a known event — a failed logon to a test account — and time how long it takes to appear in Forwarded Events and in your SIEM.
Limitations
- No local filtering beyond XPath, no parsing, no enrichment. Those happen downstream.
- Silent loss when a source’s log wraps while offline; nothing on the collector shows the gap.
- Collectors are a single point of failure per subscription unless you configure two.
- Windows only. Linux, network devices and cloud logs need a different path.
- Non-domain machines need certificates and HTTPS, which adds operational work.
When it makes sense
WEF is a good fit when you need central Windows logs without deploying or licensing an agent on every endpoint, when your SIEM agent is expensive per host, or as a second, independent copy of the most important events that keeps flowing even if an attacker stops the SIEM agent. It is a poor fit when you need endpoint-side filtering, rich parsing at the edge, or non-Windows sources in the same pipeline.
Adapting this to your environment
ADAPTthe collector address and port to your naming and firewall rules; allow TCP 5985 (or 5986) from clients to collectors only.ADAPTthe baseline subscription to the events your detections actually use, and nothing more.ADAPTsource log sizes to your longest expected offline period, especially for laptops.
Questions and corrections: hello@entropywatch.dev.