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

**URL:** <https://discuss.elastic.co/t/heartbeat-7-2-0-error-unknown-flag-index-management/191670>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [July 22, 2019, 3:28pm UTC](https://discuss.elastic.co/t/heartbeat-7-2-0-error-unknown-flag-index-management/191670 "2019-07-22T15:28:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geo-S](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@Geo-S](https://discuss.elastic.co/u/Geo-S)\
**Post date:** [July 22, 2019, 3:28pm UTC](https://discuss.elastic.co/t/heartbeat-7-2-0-error-unknown-flag-index-management/191670/1 "2019-07-22T15:28:43Z")

</div>

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](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]

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [July 22, 2019, 4:21pm UTC](https://discuss.elastic.co/t/heartbeat-7-2-0-error-unknown-flag-index-management/191670/2 "2019-07-22T16:21:13Z")

</div>

Looks like you caught a bug! I've opened a [PR](https://github.com/elastic/beats/pull/13016) to fix it. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 19, 2019, 4:29pm UTC](https://discuss.elastic.co/t/heartbeat-7-2-0-error-unknown-flag-index-management/191670/3 "2019-08-19T16:29:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
