# Kibana docker list multiple ES hosts

**URL:** <https://discuss.elastic.co/t/kibana-docker-list-multiple-es-hosts/189594>\
**Category:** Kibana\
**Created:** [July 9, 2019, 4:19pm UTC](https://discuss.elastic.co/t/kibana-docker-list-multiple-es-hosts/189594 "2019-07-09T16:19:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlim0930](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jlim0930](https://discuss.elastic.co/u/jlim0930)\
**Post date:** [July 9, 2019, 4:19pm UTC](https://discuss.elastic.co/t/kibana-docker-list-multiple-es-hosts/189594/1 "2019-07-09T16:19:50Z")

</div>

how do you list multiple ELASTICSEARCH\_HOSTS ? I want to pass along 2 different ELASTICSEARCH\_HOSTS but I can't seem to get the syntax right.

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [July 9, 2019, 5:38pm UTC](https://discuss.elastic.co/t/kibana-docker-list-multiple-es-hosts/189594/2 "2019-07-09T17:38:23Z")

</div>

Hello Justin,

I would expect it to be this:

```auto
ELASTICSEARCH_HOSTS:
  - <host1>
  - <host2>
  - <host3>

```

Let me know if that works for you!

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![jlim0930](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jlim0930](https://discuss.elastic.co/u/jlim0930)\
**Post date:** [July 9, 2019, 5:56pm UTC](https://discuss.elastic.co/t/kibana-docker-list-multiple-es-hosts/189594/3 "2019-07-09T17:56:50Z")

</div>

what about when you are running the docker command to start the container for testing?

i tried various combinations of syntax and was unable to get it to work correctly

docker run --name kibana -e ELASTICSEARCH\_HOSTS=http://xxxx:9300,[http://yyyy:9300](http://yyyy:9300) .......

no matter how i pass it rather it be in quotes or or anything I am keep getting

Jul 9 13:27:51 host docker: - [elasticsearch.hosts.0]: expected URI with scheme [http|https] but but got [[http://elastic000:9200](http://elastic000:9200),[http://elastic001:9200](http://elastic001:9200)].  
Jul 9 13:27:51 host docker: - [elasticsearch.hosts.1]: expected value of type [array] but got [string]

---

<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 6, 2019, 5:56pm UTC](https://discuss.elastic.co/t/kibana-docker-list-multiple-es-hosts/189594/4 "2019-08-06T17:56:52Z")

</div>

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