Since https://github.com/elastic/beats/pull/34605, the winlogbeat logfile is flooded with "channel not found" errors if a non-existent channel is configured in winlogbeat.yml.
For each channel which isn't found, this error is logged every 5 seconds:
{"log.level":"warn","@timestamp":"2023-05-02T16:37:12.486+0200","log.logger":"winlogbeat","log.origin":{"file.name":"beater/eventlogger.go","file.line":144},"message":"Open() encountered channel not found error. Trying again...","service.name":"winlogbeat","id":"Directory Service","error":{"message":"The specified channel could not be found."},"channel":"Directory Service","ecs.version":"1.6.0"}
My current strategy for configuring winlogbeats is listing all the channels which I'd want to collect (if they exist), regardless of the channels available on the systems. Due to this change I'm left with either maintaining multiple winlogbeat.yml configuration files or disabling logging.
Would it be possible to log this error less often?