# Interpolate list from environment variable in filebeats

**URL:** https://discuss.elastic.co/t/interpolate-list-from-environment-variable-in-filebeats/65517
**Category:** Beats
**Tags:** filebeat
**Created:** [November 9, 2016, 3:44pm UTC](https://discuss.elastic.co/t/interpolate-list-from-environment-variable-in-filebeats/65517 "2016-11-09T15:44:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![skade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skade/32/13066_2.png) [@skade](https://discuss.elastic.co/u/skade)
#### Post date: [November 9, 2016, 3:44pm UTC](https://discuss.elastic.co/t/interpolate-list-from-environment-variable-in-filebeats/65517/1 "2016-11-09T15:44:18Z")

</div>

Older Filebeat versions document a syntax for including a list of e.g. hosts from an environment variable into filebeat.yml.

[https://www.elastic.co/guide/en/beats/filebeat/1.2/using-environ-vars.html](https://www.elastic.co/guide/en/beats/filebeat/1.2/using-environ-vars.html)

This feature seems to have vanished from newer releases.

Is it still possible through any other way to perform such an inclusion?

Any usage of e.g. `[${KAFKA_BROKERS}]` doesn't work, as it always interprets the list of hosts as a full string.

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [November 9, 2016, 6:05pm UTC](https://discuss.elastic.co/t/interpolate-list-from-environment-variable-in-filebeats/65517/2 "2016-11-09T18:05:06Z")

</div>

This looks indeed like a regression in 5.0. I can't think of a workaround at the moment. Can you open a ticket in the Github Beats repository, please?

---

<div class="post-metadata">

### Author: ![skade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skade/32/13066_2.png) [@skade](https://discuss.elastic.co/u/skade)
#### Post date: [November 10, 2016, 8:39am UTC](https://discuss.elastic.co/t/interpolate-list-from-environment-variable-in-filebeats/65517/3 "2016-11-10T08:39:46Z")

</div>

Done!

> <https://github.com/elastic/beats/issues/2978>

That isn't quite the answer I hoped for, but it clarifies things :D.

---

<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: [December 8, 2016, 8:39am UTC](https://discuss.elastic.co/t/interpolate-list-from-environment-variable-in-filebeats/65517/4 "2016-12-08T08:39:49Z")

</div>

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