Heartbeat 7.2.0 Error: unknown flag: --index-management

Trying to upgrade to ELK 7.2.0. and have some ansible that gets beats up and running.

Ran into an issue with Heartbeat 7.2.0 where the new --index-management flag is unknown and the --template flag still works despite the documentation saying it's deprecated. (https://www.elastic.co/guide/en/beats/heartbeat/7.2/command-line-options.html#setup-command)

The old flags are in the usage displayed by help also.

Anyone else seeing this issue?

root@x:~# heartbeat setup --index-management
Error: unknown flag: --index-management
Usage:
heartbeat setup [flags]

Flags:
-h, --help help for setup
--ilm-policy Setup ILM policy
--template Setup index template

Global Flags:
-E, --E setting=value Configuration overwrite
-c, --c string Configuration file, relative to path.config (default "heartbeat.yml")
-d, --d string Enable certain debug selectors
-e, --e Log to stderr and disable syslog/file output
--path.config string Configuration path (default "")
--path.data string Data path (default "")
--path.home string Home path (default "")
--path.logs string Logs path (default "")
--plugin pluginList Load additional plugins
--strict.perms Strict permission checking on config files (default true)
-v, --v Log at INFO level

root@x:~# heartbeat version
heartbeat version 7.2.0 (amd64), libbeat 7.2.0 [9ba65d864ca37cd32c25b980dbb4020975288fc0 built 2019-06-20 14:49:21 +0000 UTC]

Looks like you caught a bug! I've opened a PR to fix it. Thanks!

1 Like