# Heartbeat auto reload configuration file

**URL:** https://discuss.elastic.co/t/heartbeat-auto-reload-configuration-file/339163
**Category:** Beats
**Tags:** heartbeat
**Created:** [July 25, 2023, 9:17am UTC](https://discuss.elastic.co/t/heartbeat-auto-reload-configuration-file/339163 "2023-07-25T09:17:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![michael31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael31/32/122835_2.png) [@michael31](https://discuss.elastic.co/u/michael31)
#### Post date: [July 25, 2023, 9:17am UTC](https://discuss.elastic.co/t/heartbeat-auto-reload-configuration-file/339163/1 "2023-07-25T09:17:52Z")

</div>

Hello,

I am setting up heartbeat with auto reload configuration files under the monitor.d path. It works fine and loads new config files but the problem is that it loads only for new files, if I edit an existing file and save it with new configuration, heartbeat does not detect that change.

Can you please advise if there is some workaround that can be implemented for heartbeat?

Thanks.

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [July 26, 2023, 4:25am UTC](https://discuss.elastic.co/t/heartbeat-auto-reload-configuration-file/339163/2 "2023-07-26T04:25:41Z")

</div>

Hello,

Can you post your `heartbeat.yml`? Did you set `reload.enabled`?

```yml
heartbeat.config.monitors:
  path: /path/to/my/monitors.d/*.yml
  # If enabled, heartbeat will periodically check the config.monitors path for changes
  reload.enabled: true
  reload.period: 60s

```

Best regards  
Wolfram

---

<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 23, 2023, 6:26am UTC](https://discuss.elastic.co/t/heartbeat-auto-reload-configuration-file/339163/3 "2023-08-23T06:26:13Z")

</div>

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