fix(inputs.win_eventlog): Handle empty query correctly (#15132)

This commit is contained in:
Sven Rebhan 2024-04-10 09:11:17 -04:00 committed by GitHub
parent 01c00d69fb
commit 8e505944e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ func (w *WinEventLog) Init() error {
w.subscriptionFlag = EvtSubscribeStartAtOldestRecord
}
if w.Query == "" {
w.Query = "*"
}
bookmark, err := _EvtCreateBookmark(nil)
if err != nil {
return err