Hi, I set up an environment with ES 5.6 and Kibana 5.6 under Docker.
Here is the docker-compose services :
elasticsearch:
build: ./docker/elasticsearch
volumes:
- es_data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
kibana:
image: docker.elastic.co/kibana/kibana:5.6.5
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch
links:
- elasticsearch
When accessing http://127.0.0.1:5601 I can connect to kibana with elastic / changeme credentials but when trying to launch a discover with '*' I get the following error message :
Discover: connect ECONNREFUSED 172.18.0.7:80
Error: Bad Gateway
at respond (http://127.0.0.1:5601/bundles/kibana.bundle.js?v=15592:12:2730)
at checkRespForFailure (http://127.0.0.1:5601/bundles/kibana.bundle.js?v=15592:12:1959)
at http://127.0.0.1:5601/bundles/kibana.bundle.js?v=15592:1:9692
at processQueue (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:38:23621)
at http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:38:23888
at Scope.$eval (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:39:4619)
at Scope.$digest (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:39:2359)
at Scope.$apply (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:39:5037)
at done (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:37:25027)
at completeRequest (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:37:28702)
at XMLHttpRequest.xhr.onload (http://127.0.0.1:5601/bundles/commons.bundle.js?v=15592:37:29634)
172.18.0.7 is the IP of elasticsearch container. I don't know why Kibana try to connect to port 80 of the elasticsearch container.
The configuration is the default. Didn't made any changes
elasticsearch.yml
cluster.name: "docker-cluster"
network.host: 0.0.0.0
# minimum_master_nodes need to be explicitly set when bound on a public IP
# set to 1 to allow single node clusters
# Details: https://github.com/elastic/elasticsearch/pull/17288
discovery.zen.minimum_master_nodes: 1
kibana.yml
---
# Default Kibana configuration from kibana-docker.
server.name: kibana
server.host: "0"
elasticsearch.url: http://elasticsearch:9200
elasticsearch.username: elastic
elasticsearch.password: changeme
xpack.monitoring.ui.container.elasticsearch.enabled: true
Kibana can find an index I've created but I have this error