问题:如何调试kibana?有错误日志吗?
详情:这是我开始kibana,向端口发出请求,什么也得不到,并再次检查服务.服务没有熬夜,但我不知道为什么.
vagrant@default-ubuntu-1204:/opt/kibana/current/config$ sudo service kibana start
kibana start/running, process 11774
vagrant@default-ubuntu-1204:/opt/kibana/current/config$ curl -XGET 'http://localhost:5601'
curl: (7) couldn't connect to host
vagrant@default-ubuntu-1204:/opt/kibana/current/config$ sudo service kibana status
kibana stop/waiting
Run Code Online (Sandbox Code Playgroud)
这是nginx日志,报告当我从端口80卷曲-XGET时,它转发到端口5601:
2015/06/15 17:32:17 [error] 9082#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: kibana, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5601/", host: "localhost"
Run Code Online (Sandbox Code Playgroud)
更新:我可能有点过分了.不过,我仍然对查看kibana日志的方式感兴趣!任何建议表示赞赏!
我注意到当我从命令行运行kibana时,我看到的错误比"拒绝连接"更具描述性:
vagrant@default-ubuntu-1204:/opt/kibana/current$ bin/kibana
{"@timestamp":"2015-06-15T22:04:43.344Z","level":"error","message":"Service Unavailable","node_env":"production","error":{"message":"Service Unavailable","name":"Error","stack":"Error: Service Unavailable\n at respond (/usr/local/kibana-4.0.2/src/node_modules/elasticsearch/src/lib/transport.js:235:15)\n at checkRespForFailure (/usr/local/kibana-4.0.2/src/node_modules/elasticsearch/src/lib/transport.js:203:7)\n at HttpConnector.<anonymous> (/usr/local/kibana-4.0.2/src/node_modules/elasticsearch/src/lib/connectors/http.js:156:7)\n at IncomingMessage.bound (/usr/local/kibana-4.0.2/src/node_modules/elasticsearch/node_modules/lodash-node/modern/internals/baseBind.js:56:17)\n …Run Code Online (Sandbox Code Playgroud) 问:集群永远不会变绿!为什么?
以下是集群的特点:
Instance type t2.small.elasticsearch
Instance count 1
Dedicated master Disabled
Zone awareness Disabled
Storage type EBS
EBS volume type General Purpose (SSD)
EBS volume size 10 GB
Encryption at rest Disabled
Start hour for the daily automated snapshot 09:00 UTC
Advanced options
Elasticsearch parameters:
rest.action.multi.allow_explicit_index: true
indices.fielddata.cache.size: unbounded (default)
indices.query.bool.max_clause_count: 1024 (default)
Run Code Online (Sandbox Code Playgroud)