2016-01-20 28 views
0

訪問Kibana GUI我已經在單機中安裝了Elastisearch 2.1.0和kibana 4.3.0。 Kibana.yml配置:無法通過http:// Ip:5601/

# Kibana is served by a back end server. This controls which port to use. 
    server.port: 5601 
# The host to bind the server to. 
    server.host: "IP" 
# A value to use as a XSRF token. This token is sent back to the server on each request 
# and required if you want to execute requests from other clients (like curl). 
# server.xsrf.token: "" 
# If you are running kibana behind a proxy, and want to mount it at a path, 
# specify that path here. The basePath can't end in a slash. 
# server.basePath: "" 
# The Elasticsearch instance to use for all your queries. 
    elasticsearch.url: "http://IP:9200/" 
# preserve_elasticsearch_host true will send the hostname specified in `elasticsearch`. If you set it to false, 
# then the host you use to connect to *this* Kibana instance will be sent. 
    elasticsearch.preserveHost: true 
# Kibana uses an index in Elasticsearch to store saved searches, visualizations 
# and dashboards. It will create a new index if it doesn't already exist. 
    kibana.index: ".kibana" 
# The default application to load. 
    kibana.defaultAppId: "discover" 
# If your Elasticsearch is protected with basic auth, these are the user credentials 
# used by the Kibana server to perform maintenance on the kibana_index at startup. Your Kibana 
# users will still need to authenticate with Elasticsearch (which is proxied through 
# the Kibana server) 
# elasticsearch.username: "user" 
# elasticsearch.password: "pass" 
# SSL for outgoing requests from the Kibana Server to the browser (PEM formatted) 
# server.ssl.cert: /path/to/your/server.crt 
# server.ssl.key: /path/to/your/server.key 
# Optional setting to validate that your Elasticsearch backend uses the same key files (PEM formatted) 
# elasticsearch.ssl.cert: /path/to/your/client.crt 
# elasticsearch.ssl.key: /path/to/your/client.key 
# If you need to provide a CA certificate for your Elasticsearch instance, put 
# the path of the pem file here. 
# elasticsearch.ssl.ca: /path/to/your/CA.pem 
# Set to false to have a complete disregard for the validity of the SSL 
# certificate. 
    elasticsearch.ssl.verify: true 
# Time in milliseconds to wait for elasticsearch to respond to pings, defaults to 
# request_timeout setting 
# elasticsearch.pingTimeout: 1500 
# Time in milliseconds to wait for responses from the back end or elasticsearch. 
# This must be > 0 
# elasticsearch.requestTimeout: 300000 
# Time in milliseconds for Elasticsearch to wait for responses from shards. 
# Set to 0 to disable. 
# elasticsearch.shardTimeout: 0 
# Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying 
# elasticsearch.startupTimeout: 5000 
# Set the path to where you would like the process id file to be created. 
    pid.file: /var/run/kibana.pid 
# If you would like to send the log output to a file you can set the path below. 
    logging.dest: /var/log/kibana/kibana.log 
# Set this to true to suppress all logging output. 
# logging.silent: false 
# Set this to true to suppress all logging output except for error messages. 
# logging.quiet: true 
# Set this to true to log all events, including system usage information and all requests. 
# logging.verbose: true 

雖然我做的捲曲-IP:5601,我得到這樣的輸出:

**HTTP/1.1 200 OK 
x-app-name: kibana 
x-app-version: 4.3.0 
cache-control: no-cache 
content-type: text/html 
content-length: 217 
accept-ranges: bytes 
Date: Wed, 20 Jan 2016 15:28:35 GMT 
Connection: keep-alive 
<script>var hashRoute = '/app/kibana'; 
var defaultRoute = '/app/kibana'; 
var hash = window.location.hash; 
if (hash.length) { 
    window.location = hashRoute + hash; 
} else { 
    window.location = defaultRoute; 
</script> 

Elasticsearch和kibana都是運行起來還是我沒能從瀏覽器訪問Kibana GUI。它不顯示該頁面。

我也檢查了elasticsearch.yml的配置。主機和IP在那裏是正確的。 curl命令是給此輸出elasticsearch [命令:捲曲http://IP:9200/]

{ 
    "name" : "node-1", 
    "cluster_name" : "elasticsearch", 
    "version" : { 
    "number" : "2.1.0", 
    "build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87", 
    "build_timestamp" : "2015-11-18T22:40:03Z", 
    "build_snapshot" : false, 
    "lucene_version" : "5.3.1" 
    }, 
    "tagline" : "You Know, for Search" 
} 

有誰知道可能是什麼問題。

+0

你在同一臺主機ES和Kiban上運行的捲曲一個?在你的'elasticsearch.yml'配置文件中,你有什麼'network.bind_host'? – Val

+0

是我在ES和kibana所在的主機上運行curl,network.bind_host是安裝了ES和kibana的主機的IP – Anamika

+0

這是一個私有IP地址,即'10.x.y.z'嗎? – Val

回答

0

您是否在您的本地計算機上安裝了elasticsearch和kibana,我的意思是您正在使用的筆記本電腦或計算機?或者它在單獨的服務器上運行?

如果您在您訪問瀏覽器在同一臺機器上運行它,那麼你可以只訪問它爲localhost:端口

+0

我檢查了kibana日誌文件我得到這個錯誤「{」type「:」log「,」@ timestamp「:」2016-01-22T18:03:07 + 00:00「,」tags「:[」status「 ,「plugin:elasticsearch」,「error」],「pid」:7147,「name」:「plugin:elasticsearch」,「state」:「red」,「message」:「狀態從綠色變爲紅色 - 服務不可用「」,「prevState」:「綠色」,「prevMsg」:「Kibana索引就緒」 {「type」:「log」,「@ timestamp」:「2016-01-22T18:03:09 + 00:00」 , 「標籤」:[ 「狀態」, 「插件:elasticsearch」, 「錯誤」], 「PID」:7147, 「姓名」: 「插件:elasticsearch」, 「狀態」: 「紅」, 「消息」:」狀態從紅色變爲紅色 - Elasticsearch仍在初始化kibana索引... – Anamika

+0

在2.5秒內再次嘗試。「,」prevState「:」red「,」prevMsg「:」服務不可用「} {」type「:」日誌 「 」@時間戳「: 」2016-01-22T18:03:22 + 00:00「, 」標籤「:[ 」錯誤「, 」elasticsearch「], 」PID「:7147, 」消息「:」 請求錯誤,重試 - 連接ECONNREFUSED「} {」type「:」log「,」@ ti mestamp「:」2016-01-22T18:03:22 + 00:00「,」tags「:[」warning「,」elasticsearch「],」pid「:7147,」message「:」無法恢復連接:「有人可以告訴我如何解決這個錯誤?正如當我嘗試curl -v IP:9200 for elasticsearch時,它工作得很好 – Anamika