INFORMATION
Kibana 5.2 and Elasticsearch 5.2 installed on the same host from yum repos (CentOS 7).
Kibana is configured as a coordinating only node according to this document. My kibana.yml file looks like this:
server.port: 5601
server.name: "s-ut-kibana-1"
server.host: 10.1.0.21
elasticsearch.url: "http://localhost:9200"
The elasticsearch.yml file looks like this:
cluster.name: es_cluster_draper_ut
node.name: s-ut-kibana-1.stc.local
bootstrap.memory_lock: false
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ['10.1.0.20', '10.1.0.21']
node.master: false
node.data: false
node.ingest: false
I have one elasticsearch data node (for now) at IP address 10.1.0.20. The Kibana server is 10.1.0.21. If I curl localhost, I get:
# curl -XGET 'localhost:9200/?pretty'
{
"name" : "s-ut-kibana-1.stc.local",
"cluster_name" : "es_cluster_draper_ut",
"cluster_uuid" : "_na_",
"version" : {
"number" : "5.2.0",
"build_hash" : "24e05b9",
"build_date" : "2017-01-24T19:52:35.800Z",
"build_snapshot" : false,
"lucene_version" : "6.4.0"
},
"tagline" : "You Know, for Search"
}
If I curl 10.1.0.20, i get:
# curl -XGET '10.1.0.20:9200/?pretty'
{
"name" : "s-ut-elastic-1.stc.local",
"cluster_name" : "es_cluster_draper_ut",
"cluster_uuid" : "Xf7jgC6UQPi8xFSvSW8ukw",
"version" : {
"number" : "5.2.0",
"build_hash" : "24e05b9",
"build_date" : "2017-01-24T19:52:35.800Z",
"build_snapshot" : false,
"lucene_version" : "6.4.0"
},
"tagline" : "You Know, for Search"
}
So I know Kibana can access the data nodes.
PROBLEM
When I open the Kibana web interface, I get:
However, if I modify the kibana.yml file so
elasticsearch.url: "http://localhost:9200"
instead says:
elasticsearch.url: "http://10.1.0.20:9200"
and restart Kibana, I get:
Elasticsearch for sure is running on the Kibana host, and I show port 9200 as listening. So, what is wrong with my config that it will not let me point Kibana to the elasticsearch instance on localhost?