[英]warning: kibana Unable to connect to Elasticsearch at http://elasticsearch:9200
[英]'Error Could not contact Elasticsearch at http://localhost:9200.' - kibana
'錯誤無法通過http:// localhost:9200與Elasticsearch聯系。 請確保從您的系統可以訪問Elasticsearch。”
目前,我正在關注http://packetbeat.com/getstarted
我安裝了
現在,我更改我的kibana / config.js文件-輸入,
elasticsearch: "http://"localhost":9200",
在Elasticsearch下。 我得到一個純白色的頁面,上面有{{dashboard.current.title}}
。
如果我注釋掉elasticsearch: "http://"localhost":9200",
我收到Error Could not contact Elasticsearch at http://localhost:9200. Please ensure that Elasticsearch is reachable from your system.
Error Could not contact Elasticsearch at http://localhost:9200. Please ensure that Elasticsearch is reachable from your system.
如果我也將其輸入為elasticsearch: "http://localhost:9200",
則會收到相同的錯誤消息,提示它無法聯系elasticsearch。
因此,我假設elasticsearch: "http://"localhost":9200",
是正確的,但它應該呈現某些內容。 也許一個UI
將主機名而不是localhost
例如http:// bilal:9200 (這里bilal是我的主機名),如果您不知道主機名goto cmd或終端類型的主機名
這對我有用..而不是本地主機,請為elasticsearch設置您的公共ip或公共dns:“ http:// public_dns:80 ”,
並將端口轉發從80設置為9200。
讓ElasticSearch
通過使用Kibana
自動檢測ElasticSearch
URL
elasticsearch: "http://"+window.location.hostname+":9200",
而不是elasticsearch: "http://"localhost":9200"
不要更改任何內容,默認的Elasticsearch在端口9200中:
用於所有查詢的Elasticsearch實例。
elasticsearch.url:“ http:// localhost:9200 ”
問題在於,也許您必須放置elasticsearch.url,而只放置elasticsearch:“ http:// localhost:9200 ”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.