From f104c1a708b2d99ee56137fc0f0be289f5242288 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Fri, 10 Mar 2023 14:11:50 -0700 Subject: [PATCH] chore: add service input stub to Windows event log, not windows (#12837) --- plugins/inputs/win_eventlog/win_eventlog_notwindows.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/win_eventlog/win_eventlog_notwindows.go b/plugins/inputs/win_eventlog/win_eventlog_notwindows.go index 2513147be..6cdf140a2 100644 --- a/plugins/inputs/win_eventlog/win_eventlog_notwindows.go +++ b/plugins/inputs/win_eventlog/win_eventlog_notwindows.go @@ -20,8 +20,10 @@ func (w *WinEventLog) Init() error { w.Log.Warn("current platform is not supported") return nil } -func (w *WinEventLog) SampleConfig() string { return sampleConfig } -func (w *WinEventLog) Gather(_ telegraf.Accumulator) error { return nil } +func (*WinEventLog) SampleConfig() string { return sampleConfig } +func (*WinEventLog) Gather(_ telegraf.Accumulator) error { return nil } +func (*WinEventLog) Start(_ telegraf.Accumulator) error { return nil } +func (*WinEventLog) Stop() {} func init() { inputs.Add("win_eventlog", func() telegraf.Input {