设置ES和kibana的过程中,老是出现:
Connection Failed
Possibility #1: Your elasticsearch server is down or unreachable
This can be caused by a network outage, or a failure of the Elasticsearch process. If you have recently run a query that required a terms facet to be executed it is possible the process has run out of memory and stopped. Be sure to check your Elasticsearch logs for any sign of memory pressure.
Possibility #2: You are running Elasticsearch 1.4 or higher
Elasticsearch 1.4 ships with a security setting that prevents Kibana from connecting. You will need to set http.cors.allow-origin in your elasticsearch.yml to the correct protocol, hostname, and port (if not 80) that your access Kibana from. Note that if you are running Kibana in a sub-url, you should exclude the sub-url path and only include the protocol, hostname and port. For example, http://mycompany.com:8080, not http://mycompany.com:8080/kibana.
Click back, or the home button, when you have resolved the connection issue
由于ES版本是1.3.9 而且在kibana3.1.2的机器上,通过内网访问http://es:9200是完全OK的,一直怀疑是其他环节的问题。后来发现,
在kibana中使用外网地址链接ES,就没问题了。
具体原因不知,据说Kibana4已经解决该问题。
有人说,如果你访问的Kibana是用外网地址,那么Kibana里面也需要配置ES外网地址。
另外,以前使用ES1.3.2的时候好像不存在这个问题。