fix(inputs.win_eventlog): Handle empty query correctly (#15132)
This commit is contained in:
parent
01c00d69fb
commit
8e505944e3
|
|
@ -62,6 +62,10 @@ func (w *WinEventLog) Init() error {
|
||||||
w.subscriptionFlag = EvtSubscribeStartAtOldestRecord
|
w.subscriptionFlag = EvtSubscribeStartAtOldestRecord
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if w.Query == "" {
|
||||||
|
w.Query = "*"
|
||||||
|
}
|
||||||
|
|
||||||
bookmark, err := _EvtCreateBookmark(nil)
|
bookmark, err := _EvtCreateBookmark(nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue