NOTE: The troubleshooting instructions in this section apply to both the certificate-based, and the Kerberos authentication options.
For troubleshooting instructions that apply only if Kerberos authentication is used, see Troubleshooting Windows Event Collector if Kerberos authentication is used.
When you experience issues while using Windows Event Collector (WEC), run WEC in debug mode to get detailed log messages.
-
Set the log level to debug:
log: level: "debug"
-
Start WEC.
At every refresh interval, the following debug messages should be displayed:
DEBUG subscriptionEndpoint {"clientAddress": "..."} DEBUG actionHandler {"messageID": "...", "action": "http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate"} DEBUG enumerate
This means that the client has connected and requested the subscription list.
-
If you cannot see these messages within the refresh interval, you should check the following channels in the client's event viewer:
-
Applications and Services Logs\Microsoft\Windows\Eventlog-ForwardingPlugin
-
Applications and Services Logs\Microsoft\Windows\Windows Remote Management
-
Some common error codes and their explanations:
-
5004: A channel specified in the query XML does not exist or cannot be read on the Windows client. This can be caused by the "Network Service" not having permission to read the security log.
Add the "Network Service" account to the Event Log Readers group, and restart the computer for changes to take effect.
-
15008: The query XML of the subscription is invalid.
-
995 (HTTP error 12186): The "Network Service" does not have permission to read the client certificate.
-
HTTP error 403: If everything is set correctly, then it might be possible that a proxy is set and the forwarder tries to connect to the proxy instead of WEC.
TIP: Sometimes proxy settings are not displayed in any GUI window. Check them using netsh winhttp show proxy. To reset proxy settings, use netsh winhttp reset proxy.