Greetings,
I've got a logstash/kibana/elasticsearch system setup. I also setup elastic search in a cluster with 3 nodes (10.1.0.81, 10.1.0.82, 10.1.0.83). I see all nodes healthy when I go to http://10.1.0.81:9200/_plugin/head/ but for some reason when I try to load kibana I get the following:
Kibana: Unable to connect to Elasticsearch
Error: Unable to connect to Elasticsearch
Error: Bad Gateway
at respond (http://logstashvm01.company.com/index.js?_b=7562:85289:15)
at checkRespForFailure (http://logstashvm01.company.com/index.js?_b=7562:85257:7)
at http://logstashvm01.company.com/index.js?_b=7562:83895:7
at wrappedErrback (http://logstashvm01.company.com/index.js?_b=7562:20902:78)
at wrappedErrback (http://logstashvm01.company.com/index.js?_b=7562:20902:78)
at wrappedErrback (http://logstashvm01.company.com/index.js?_b=7562:20902:78)
at http://logstashvm01.company.com/index.js?_b=7562:21035:76
at Scope.$eval (http://logstashvm01.company.com/index.js?_b=7562:22022:28)
at Scope.$digest (http://logstashvm01.company.com/index.js?_b=7562:21834:31)
at Scope.$apply (http://logstashvm01.company.com/index.js?_b=7562:22126:24)
I also get these in /var/log/kibana.log:
{"name":"Kibana","hostname":"logstashvm01.copmany.com","pid":25888,"level":50,"err":{"message":"connect ECONNREFUSED","name":"Error","stack":"Error: connect ECONNREFUSED\n at errnoException (net.js:905:11)\n at Object.afterConnect [as oncomplete] (net.js:896:19)","code":"ECONNREFUSED"},"msg":"","time":"2015-11-04T22:09:11.181Z","v":0}
{"name":"Kibana","hostname":"logstashvm01.company.com","pid":25888,"level":30,"req":{"method":"GET","url":"/elasticsearch/?=1446674984430","headers":{"connection":"upgrade","host":"logstashvm01.company.com","authorization":"Basic aXRhZG1pbjp2MW55bDF6MzIz","accept":"application/json, text/plain, /","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36","referer":"http://logstashvm01.company.com/","accept-encoding":"gzip, deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"127.0.0.1","remotePort":55644},"res":{"statusCode":502,"responseTime":3,"contentLength":77},"msg":"GET /?=1446674984430 502 - 3ms","time":"2015-11-04T22:09:11.182Z","v":0}
{"name":"Kibana","hostname":"logstashvm01.company.com","pid":25888,"level":30,"req":{"method":"GET","url":"/bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0","headers":{"connection":"upgrade","host":"logstashvm01.company.com","cache-control":"max-age=0","authorization":"Basic aXRhZG1pbjp2MW55bDF6MzIz","if-none-match":"W/"ffac-1913517162"","if-modified-since":"Tue, 15 Sep 2015 00:23:42 GMT","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36","accept":"/","referer":"http://logstashvm01.company.com/","accept-encoding":"gzip, deflate, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"127.0.0.1","remotePort":55646},"res":{"statusCode":304,"responseTime":0,"contentLength":0},"msg":"GET /bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 304 - 0ms","time":"2015-11-04T22:09:11.201Z","v":0}
Here's the relevant config on all three nodes for elasticsearch:
cluster.name: cluster1
node.name: "logstashvm01"
index.number_of_replicas: 2
network.host: 10.1.0.81
gateway.recover_after_nodes: 2
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.1.0.82", "10.1.0.83"]
script.disable_dynamic: true
Any help would be greatly appreciated. Please let me know if there's anything else needed to debug this.
Thanks!
Jason.