Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BeatV2Manager to configure inputs and set log level #34066

Merged
merged 14 commits into from
Dec 22, 2022
Merged
2 changes: 2 additions & 0 deletions libbeat/management/management.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const (
Failed
// Stopping is status describing application is stopping.
Stopping
// Stopped is status describing application is stopped.
Stopped
)

// Namespace is the feature namespace for queue definition.
Expand Down
6 changes: 4 additions & 2 deletions x-pack/libbeat/management/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (

// Config for central management
type Config struct {
Enabled bool `config:"enabled" yaml:"enabled"`
Blacklist ConfigBlacklistSettings `config:"blacklist" yaml:"blacklist"`
Enabled bool `config:"enabled" yaml:"enabled"`
Blacklist ConfigBlacklistSettings `config:"blacklist" yaml:"blacklist"`
OutputRestart bool `config:"output_restart" yaml:"output_restart"`
cmacknz marked this conversation as resolved.
Show resolved Hide resolved
}

// ConfigBlock stores a piece of config from central management
Expand All @@ -29,6 +30,7 @@ type ConfigBlocksWithType struct {
// ConfigBlocks holds a list of type + configs objects
type ConfigBlocks []ConfigBlocksWithType

// DefaultConfig returns the default config for the V2 manager
func DefaultConfig() *Config {
return &Config{
Blacklist: ConfigBlacklistSettings{
Expand Down
Loading