# Multiline config parameter to single line env variable

**URL:** <https://discuss.elastic.co/t/multiline-config-parameter-to-single-line-env-variable/171723>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 11, 2019, 10:14am UTC](https://discuss.elastic.co/t/multiline-config-parameter-to-single-line-env-variable/171723 "2019-03-11T10:14:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![veepee78](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veepee78/32/41763_2.png) [@veepee78](https://discuss.elastic.co/u/veepee78)\
**Post date:** [March 11, 2019, 10:14am UTC](https://discuss.elastic.co/t/multiline-config-parameter-to-single-line-env-variable/171723/1 "2019-03-11T10:14:02Z")

</div>

Can this be told to ES as a env variable somehow? I'd like to set this in docker-compose.yml instead of mounting a file.

xpack.monitoring.exporters:  
id1:  
type: http  
host: ["[http://es-mon-1:9200](http://es-mon-1:9200)", "[http://es-mon2:9200](http://es-mon2:9200)"]  
auth.username: remote\_monitor  
auth.password: changeme

I did try this, but it didn't work:

- "xpack.monitoring.exporters={id1:{type: http, host: [""http://elasticsearch\_monitor:9200""]}}"

---

<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 8, 2019, 10:14am UTC](https://discuss.elastic.co/t/multiline-config-parameter-to-single-line-env-variable/171723/2 "2019-04-08T10:14:03Z")

</div>

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