How to set kibana ELASTICSEARCH_URL parameter

I run a elasticsearch and kibana in docker. elasticsearch is run .But kibana can not run . It always try to connected http://elasticsearch:9200 .I set the ELASTICSEARCH_URL kibana command. But not work

I used the command like below.

docker run -d --name d-elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.1.1

docker run -d --name d-kibana -e ELASTICSEARCH_URL=http://192.168.0.73:9200 -p 5601:5601 docker.elastic.co/kibana/kibana:7.1.1

When I open the http://localhost:5601/. It said Kibana server is not ready yet

Logs like this .
kibana docker log: {"type":"log","@timestamp":"2019-06-05T08:21:26Z","tags":["warning","elasticsearch","data"],"pid":1,"message":"Unable to revive connection: http://elasticsearch:9200/"}

Have you followed the instructions at https://www.elastic.co/guide/en/kibana/current/docker.html? You must specify elasticsearch.hosts so kibana knows how to connect to elasticsearch

Thank you . I make a mistake. It's ELASTICSEARCH_HOSTS. Not ELASTICSEARCH_URL.

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