Skip to content

Commit

Permalink
[updatecli] Update to elastic/beats@30320a3bfcfc (#2470)
Browse files Browse the repository at this point in the history
* chore: Update to elastic/beats@30320a3bfcfc

Made with ❤️️ by updatecli

* Fix beats breaking change introduced on elastic/beats#40622

---------

Co-authored-by: Rômulo Farias <[email protected]>
  • Loading branch information
cloudsecmachine and romulets authored Sep 2, 2024
1 parent 0c8e3ba commit 7e2ff45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
5 changes: 2 additions & 3 deletions internal/beater/beater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
}

Expand Down

0 comments on commit 7e2ff45

Please sign in to comment.