diff --git a/packetbeat/cmd/root.go b/packetbeat/cmd/root.go index db742e9fe91..bb8479f5e5f 100644 --- a/packetbeat/cmd/root.go +++ b/packetbeat/cmd/root.go @@ -44,6 +44,11 @@ func init() { runFlags.AddGoFlag(flag.CommandLine.Lookup("l")) runFlags.AddGoFlag(flag.CommandLine.Lookup("dump")) - RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{RunFlags: runFlags, Name: Name}) + settings := instance.Settings{ + RunFlags: runFlags, + Name: Name, + HasDashboards: true, + } + RootCmd = cmd.GenRootCmdWithSettings(beater.New, settings) RootCmd.AddCommand(genDevicesCommand()) } diff --git a/winlogbeat/cmd/root.go b/winlogbeat/cmd/root.go index 67cffcf9b8e..2b230790915 100644 --- a/winlogbeat/cmd/root.go +++ b/winlogbeat/cmd/root.go @@ -35,4 +35,4 @@ import ( var Name = "winlogbeat" // RootCmd to handle beats cli -var RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{Name: Name}) +var RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{Name: Name, HasDashboards: true}) diff --git a/x-pack/functionbeat/manager/cmd/root.go b/x-pack/functionbeat/manager/cmd/root.go index aec51050213..1c4bafc6656 100644 --- a/x-pack/functionbeat/manager/cmd/root.go +++ b/x-pack/functionbeat/manager/cmd/root.go @@ -24,6 +24,7 @@ var RootCmd *cmd.BeatsRootCmd func init() { RootCmd = cmd.GenRootCmdWithSettings(beater.New, instance.Settings{ Name: Name, + HasDashboards: false, ConfigOverrides: config.Overrides, }) diff --git a/x-pack/metricbeat/cmd/root.go b/x-pack/metricbeat/cmd/root.go index 0acd6dbdc01..0a4584889c6 100644 --- a/x-pack/metricbeat/cmd/root.go +++ b/x-pack/metricbeat/cmd/root.go @@ -33,7 +33,12 @@ var RootCmd *cmd.BeatsRootCmd func init() { var runFlags = pflag.NewFlagSet(Name, pflag.ExitOnError) runFlags.AddGoFlag(flag.CommandLine.Lookup("system.hostfs")) - RootCmd = cmd.GenRootCmdWithSettings(beater.DefaultCreator(), instance.Settings{RunFlags: runFlags, Name: Name}) + settings := instance.Settings{ + RunFlags: runFlags, + Name: Name, + HasDashboards: true, + } + RootCmd = cmd.GenRootCmdWithSettings(beater.DefaultCreator(), settings) RootCmd.AddCommand(cmd.GenModulesCmd(Name, "", mbcmd.BuildModulesManager)) RootCmd.TestCmd.AddCommand(test.GenTestModulesCmd(Name, "", beater.DefaultTestModulesCreator())) xpackcmd.AddXPack(RootCmd, Name)