2014-10-07 123 views
2

我正在嘗試使Elasticsearch + Kibana工作。出於某種原因,我得到了一個空白Kibana儀表板: enter image description hereKibana顯示空白儀表板

我config.js是隻有一行默認的文件更改:

elasticsearch: "http://127.0.0.1:9200", 

Elasticsearch工作正常,http://127.0.0.1:9200返回該JSON:

{ 
    "status" : 200, 
    "name" : "Ikthalon", 
    "version" : { 
    "number" : "1.1.1", 
    "build_hash" : "f1585f096d3f3985e73456debdc1a0745f512bbc", 
    "build_timestamp" : "2014-04-16T14:27:12Z", 
    "build_snapshot" : false, 
    "lucene_version" : "4.7" 
    }, 
    "tagline" : "You Know, for Search" 
} 

但是爲什麼我的Kibana儀表板是空白的?也許這是因爲我用URL file:///home/sergey/Desktop/kibana-3.1.1/index.html#/dashboard/file/default.json運行它?如果是這樣,我該如何使它工作?

+0

爲什麼使用「file://」格式?爲什麼不''http:// localhost:9292'? – 2014-10-07 12:43:51

回答

1

您需要在服務器上運行kibana。如果你的Python安裝,你可以使用

cd /path/to/kibana 
python -m SimpleHTTPServer 

或者,如果你可以在下面的目錄把kibana源代碼,如果你使用的是Apache:

LAMP:在/ var/WWW

WAMP:C:/wamp/www

+0

謝謝,它的工作! – Sergey 2014-10-08 07:01:09

2

你可以從Firefox打開相同的文件,Kibana會工作。

Chrome會將其封鎖爲安全功能。

1

可能會發生Javascript錯誤。在Firefox中,我有2個錯誤。 fontawesome-webfont.woff和logstash.json文件無法找到。我爲.woff和.json添加了iis MIME類型。然後問題解決了。