gpt4 book ai didi

elasticsearch - Kibana返回 “Connection Failed”- Unresolved 错误

转载 作者:行者123 更新时间:2023-12-03 00:24:38 27 4
gpt4 key购买 nike

我很想在同一台机器上设置ElasticSearch,Logstash和Kibana。我已经建立了:

elasticsearch-1.4.0
logstash-1.4.2
kibana-3.1.2

我已经按照本文中的所有步骤进行操作:http://aarvik.dk/a-bit-on-elasticsearch-logstash-kibana-the-elk-stack/

我正在运行ElasticSearch,并且能够对它运行简单的查询。

但是,当我尝试访问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. Click back, or the home button, when you have resolved the connection issue



我知道其他用户也遇到过类似的问题,我遵循了 Kibana returns "Connection Failed"中提到的建议。

我已经添加了

http.cors.allow-origin: "/.*/"

http.cors.enabled: true



到elasticsearch.yml。我仍然看到错误。我究竟做错了什么?

最佳答案

这可能是由于两个问题引起的。

  • 请检查您使用的是Elasticsearch和Kibana的兼容版本。建议同时使用两者的最新版本。
    elasticsearch-1.4.4和kibana-4.0.0-rc1-windows对我有用。
  • 这有点有趣。如果您使用的是logstash,并且其中一项作业仍在运行,则在这种情况下,Kibana会给出错误消息。

  • 您可以引用这些文章以获取更多详细信息

    http://hadooptutorials.co.in/tutorials/elasticsearch/install-elasticsearch-kibana-logstash-on-windows.html

    http://hadooptutorials.co.in/tutorials/elasticsearch/log-analytics-using-elasticsearch-logstash-kibana.html

    关于elasticsearch - Kibana返回 “Connection Failed”- Unresolved 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27050921/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com