elasticsearch 无法使用访问Kibana GUIhttp://Ip:5601/,elasticsearch,kibana,elasticsearch,Kibana" /> elasticsearch 无法使用访问Kibana GUIhttp://Ip:5601/,elasticsearch,kibana,elasticsearch,Kibana" />

elasticsearch 无法使用访问Kibana GUIhttp://Ip:5601/

elasticsearch 无法使用访问Kibana GUIhttp://Ip:5601/,elasticsearch,kibana,elasticsearch,Kibana,我已经在单机中安装了Elastisearch 2.1.0和kibana 4.3.0。 Kibana.yml配置: # 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

我已经在单机中安装了Elastisearch 2.1.0和kibana 4.3.0。 Kibana.yml配置:

# 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
在执行curl-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,我指的是您正在使用的笔记本电脑或电脑?或者它运行在单独的服务器上


如果您在访问浏览器的同一台机器上运行它,那么您可以只作为localhost:port访问它,因为您的错误包括状态

Elasticsearch仍在初始化kibana索引,我建议您尝试本页中提到的步骤:-


您是否与ES和Kibana在同一主机上运行curl?在您的
elasticsearch.yml
配置文件中,您对
network.bind_host
有什么要求?是的,我在与ES和kibana以及network相同的主机上运行curl。bind_host是安装ES和kibana的主机的IP,它是专用IP地址,也就是说,
10.x.y.z
?不,它不是一个私有IP地址。如果从本地计算机上运行它,你会看到什么:
curl-v IP:5601
?我在kibana日志文件中检查了这个错误“{”type:“log”,“@timestamp:“2016-01-22T18:03:07+00:00”,“tags:[“status”,“plugin:elasticsearch”,“error”],“pid”:7147,“name:“plugin:elasticsearch”,“state:”红色“,”消息“:”状态从绿色变为红色-服务不可用“,”prevState“:”绿色“,”prevMsg“:”Kibana索引就绪“}{”类型“:”日志“,”时间戳“:”2016-01-22T18:03:09+00:00“,”标签“:[”状态“,”插件:elasticsearch“,”错误“,”pid“:”7147,“名称“:”插件:elasticsearch“,”状态“:”红色“,”消息“:”状态从红色变为红色-Elasticsearch仍在初始化kibana索引…在2.5秒内重试。“,“prevState”:“红色”,“prevMsg”:“服务不可用”}{“类型”:“日志”,“@timestamp”:“2016-01-22T18:03:22+00:00”,“标记”:[“错误”,“Elasticsearch”],“pid”:7147,“消息”:“请求错误,重试--连接EConrefused”}{“类型”:“日志”,”@时间戳“:”2016-01-22T18:03:22+00:00“,”标签“:[“警告”,“elasticsearch”],“pid”:7147,“消息“:”无法恢复连接:“有人能告诉我如何解决此错误吗?当我尝试为elasticsearch执行curl-v 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"
}