diff --git a/go.mod b/go.mod index 3aa9d48e50..d00ed18c2c 100644 --- a/go.mod +++ b/go.mod @@ -47,7 +47,7 @@ require ( github.com/aws/smithy-go v1.20.4 github.com/dgraph-io/ristretto v0.1.1 github.com/djherbis/times v1.6.0 - github.com/elastic/beats/v7 v7.0.0-alpha2.0.20240823193033-af33fad4d50b + github.com/elastic/beats/v7 v7.0.0-alpha2.0.20240902050359-30320a3bfcfc github.com/elastic/e2e-testing v1.99.2-0.20231005090720-556e60d449dc github.com/elastic/elastic-agent-autodiscover v0.8.2 github.com/elastic/elastic-agent-client/v7 v7.15.0 diff --git a/go.sum b/go.sum index 57367984f6..ba61b215d6 100644 --- a/go.sum +++ b/go.sum @@ -1221,8 +1221,8 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8 github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/elastic/beats/v7 v7.0.0-alpha2.0.20240823193033-af33fad4d50b h1:i3WdOw//Vg76Vseqxgn47GPTVqUSucAdE42jkih1ViM= -github.com/elastic/beats/v7 v7.0.0-alpha2.0.20240823193033-af33fad4d50b/go.mod h1:m8d3EBr2z7YvWfxRgoE7SsUNbMTpyWXi67fG7B7vn7w= +github.com/elastic/beats/v7 v7.0.0-alpha2.0.20240902050359-30320a3bfcfc h1:XNdQDk9aPy4vk1KIm7p4TAHz6jMaAXiIjjtIrEY5fCo= +github.com/elastic/beats/v7 v7.0.0-alpha2.0.20240902050359-30320a3bfcfc/go.mod h1:m8d3EBr2z7YvWfxRgoE7SsUNbMTpyWXi67fG7B7vn7w= github.com/elastic/e2e-testing v1.99.2-0.20231005090720-556e60d449dc h1:3hGO3+tipLIULlrabnXpXpOV5qSDbN/EJo9Xsj3hqyo= github.com/elastic/e2e-testing v1.99.2-0.20231005090720-556e60d449dc/go.mod h1:8q2d8dmwavJXISowwaoreHFBnbR/uK4qanfRGhC/W9A= github.com/elastic/elastic-agent-autodiscover v0.8.2 h1:Fs2FhR33AMBPfm5/jz4drVzaEZaqOIHlDBvGtkUZdIk= diff --git a/internal/beater/beater.go b/internal/beater/beater.go index 20c5dc3acb..69857c9817 100644 --- a/internal/beater/beater.go +++ b/internal/beater/beater.go @@ -21,7 +21,6 @@ import ( "fmt" "github.com/elastic/beats/v7/libbeat/beat" - "github.com/elastic/beats/v7/libbeat/common/reload" agentconfig "github.com/elastic/elastic-agent-libs/config" "github.com/elastic/elastic-agent-libs/logp" @@ -30,14 +29,14 @@ import ( "github.com/elastic/cloudbeat/internal/launcher" ) -func New(_ *beat.Beat, cfg *agentconfig.C) (beat.Beater, error) { +func New(b *beat.Beat, cfg *agentconfig.C) (beat.Beater, error) { log := logp.NewLogger("launcher") reloader := launcher.NewListener(log) validator := &validator{} s := launcher.New(log, "Cloudbeat", reloader, validator, NewBeater, cfg) - reload.RegisterV2.MustRegisterInput(reloader) + b.Registry.MustRegisterInput(reloader) return s, nil }