2016-01-20 69 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