# Dynamic modification of \[beats\].yml file for providing list of hosts/urls dynamically

**URL:** https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646
**Category:** Beats
**Created:** [March 15, 2017, 6:12am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646 "2017-03-15T06:12:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![shweta\_chugh](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shweta\_chugh](https://discuss.elastic.co/u/shweta_chugh)
#### Post date: [March 15, 2017, 6:12am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/1 "2017-03-15T06:12:30Z")

</div>

Hi,

My application code is written in Java. I am running heartbeat and metricbeat on one application module and some devices are getting connected to this module randomly thus I get an IP address of the connected devices at this module. Is it possible to modify configuration for list of urls/hosts in [beats].yml file dynamically and thereafter the specific beats service gets reloaded? Is there any limit to providing number of urls/hosts?  
An early response to this will be much appreciated.

Thanks

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 16, 2017, 3:28pm UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/2 "2017-03-16T15:28:56Z")

</div>

Both Metricbeat and Filebeat are gaining the ability to detect config changes to files in a "conf.d" directory in 5.3.

See the docs from the master branch for an idea of how the feature works:

Metricbeat - [https://www.elastic.co/guide/en/beats/metricbeat/master/\_reload\_configuration.html](https://www.elastic.co/guide/en/beats/metricbeat/master/_reload_configuration.html)  
Filebeat- [https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-configuration-reloading.html](https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-configuration-reloading.html)

---

<div class="post-metadata">

### Author: ![shweta\_chugh](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shweta\_chugh](https://discuss.elastic.co/u/shweta_chugh)
#### Post date: [March 17, 2017, 9:15am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/3 "2017-03-17T09:15:57Z")

</div>

Thanks Andrewkroh, for sharing the information. I am only targeting Metricbeat and Heartbeat as of now. The latest version available for download at the website is 5.2, when can we except the release of version 5.3.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 17, 2017, 9:50am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/4 "2017-03-17T09:50:11Z")

</div>

You can expect the 5.3 release in the next weeks. If you already want to play around with it, there are also nightly builds available: [https://beats-nightlies.s3.amazonaws.com/index.html?prefix=metricbeat/](https://beats-nightlies.s3.amazonaws.com/index.html?prefix=metricbeat/) But be aware, these are snapshot builds and not meant for production.

---

<div class="post-metadata">

### Author: ![shweta\_chugh](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shweta\_chugh](https://discuss.elastic.co/u/shweta_chugh)
#### Post date: [March 17, 2017, 10:24am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/5 "2017-03-17T10:24:33Z")

</div>

Thanks

---

<div class="post-metadata">

### Author: ![shweta\_chugh](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shweta\_chugh](https://discuss.elastic.co/u/shweta_chugh)
#### Post date: [March 20, 2017, 9:02am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/6 "2017-03-20T09:02:52Z")

</div>

Hi,

Is the reload functionality available for heartbeat. Like, if more hosts/urls are adding up dynamically, can we reload heartbeat in that case?

Thanks

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 20, 2017, 12:46pm UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/7 "2017-03-20T12:46:27Z")

</div>

Heartbeat also has a reload funcitonality: [https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-heartbeat-options.html#monitor-watch-poll-file](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-heartbeat-options.html#monitor-watch-poll-file) Be aware that this might change in the future as we want to unify it to be similar to the reload functionality with have in Filebeat and Metricbeat.

---

<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: [April 5, 2017, 6:12am UTC](https://discuss.elastic.co/t/dynamic-modification-of-beats-yml-file-for-providing-list-of-hosts-urls-dynamically/78646/8 "2017-04-05T06:12:29Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
