Dear all,
I have configures my Windows servers to send their logs to a Windows Event Collector (WEC). On this server, I created a "subscription" to send System
and Security
event logs to that WEC server.
On the WEC server, I installed a winlogbeat agent and enabled the "ForwardedEvents" to be sent to my ELK cluster:
winlogbeat.event_logs:
- name: ForwardedEvents
ignore_older: 96h
event_id: -5152,-5156,-5157,-5158
tags: [forwarded]
So far so good. But later I modify that subscription to add more logs: I added Application, Windows Powershell, Microsoft-Windows-PowerShell/Admin*, Microsoft-Windows-PowerShell/Operational.
When the WEC started receiving those event, the winlogbeat started to display lots of warning into its log file:
{"log.level":"warn","@timestamp":"2024-02-20T09:11:20.810-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for Passwordstate Service (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:22.744-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for AD FS (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:23.214-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for COM+ SOAP Services (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:25.195-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for Directory Synchronization (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:25.197-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for ADSync (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:27.397-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for PasswordResetService (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:27.538-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for nssm (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:32.335-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for gupdate (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:36.417-0500","log.origin":{"file.name":"wineventlog/metadata_store.go","file.line":182},"message":"Failed to read event metadata from publisher. Continuing to next event.","service.name":"winlogbeat","publisher":"Microsoft-Windows-Perflib","error":{"message":"XML syntax error on line 5: unexpected EOF"},"ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:36.417-0500","log.origin":{"file.name":"wineventlog/metadata_store.go","file.line":182},"message":"Failed to read event metadata from publisher. Continuing to next event.","service.name":"winlogbeat","publisher":"Microsoft-Windows-Perflib","error":{"message":"XML syntax error on line 5: unexpected EOF"},"ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:36.417-0500","log.origin":{"file.name":"wineventlog/metadata_store.go","file.line":182},"message":"Failed to read event metadata from publisher. Continuing to next event.","service.name":"winlogbeat","publisher":"Microsoft-Windows-Perflib","error":{"message":"XML syntax error on line 5: unexpected EOF"},"ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:41.512-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchangeIS (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:48.791-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSSQL$MICROSOFT##WID (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:50.744-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for ASP.NET 4.0.30319.0 (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:51.181-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":517},"message":"WinEventLog[WEC-STI/ADFS] EventHandles returned error The query result is stale or invalid and must be recreated. This may be due to the log being cleared or rolling over after the query result was created.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:11:51.181-0500","log.logger":"winlogbeat","log.origin":{"file.name":"beater/eventlogger.go","file.line":179},"message":"Read() encountered recoverable error. Reopening handle...","service.name":"winlogbeat","id":"WEC-STI/ADFS","error":{"message":"The query result is stale or invalid and must be recreated. This may be due to the log being cleared or rolling over after the query result was created."},"channel":"WEC-STI/ADFS","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:22.608-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for sshd (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:30.453-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for Xerox CentreWare Web (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:46.668-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchangeTransport (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:51.536-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchangeFrontEndTransport (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:51.727-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for Microsoft-Filtering-FIPFS (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:51.738-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchangeTransportDelivery (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:51.755-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchangeTransportSubmission (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:12:54.208-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchange Mid-Tier Storage (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:13:10.945-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for Fusion Audit (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-02-20T09:13:17.648-0500","log.origin":{"file.name":"eventlog/wineventlog.go","file.line":637},"message":"failed to load publisher metadata for MSExchange RBAC (returning an empty metadata store): failed in EvtOpenPublisherMetadata: The system cannot find the file specified.","service.name":"winlogbeat","ecs.version":"1.6.0"}
Searching the web I found this, but there are no really conclusion: https://github.com/elastic/beats/issues/36111 and its related to version 7.x of the beat. I'm running version 8.11.1
I'm wondering why the winlogbeat log file is complaining about thise things: Service
, AD FS
, COM+ SOAP Services
, Directory Synchronization
, PasswordResetService
, nssm
, gupdate
, and so on...
Since I was getting too many of those warnings, I just updated the WEC Subscription to only sends System
and Secutity
like I did at the beginning. Those errors slow down a lot to almost nothing. Just get 3 of those warning in the past 15 minutes.
If you need more information, please feel free to ask me!
Thank you and best regards,
Yanick