how do I debug kibana? Is there an error log?
- PROBLEM 1: kibana 4 won’t stay up
- PROBLEM 2: I don’t know where/if kibana 4 is logging errors
DETAILS: Here’s me starting kibana, making a request to the port, getting nothing, and checking the service again. The service doesn’t stay up, but I’m not sure why.
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
Here's the nginx log, reporting when I curl -XGET from port 80, which is forwarding to port 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"
1 Answers
In kibana 4.0.2 there is no –log-file option. If I start kibana as a service with systemctl start kibana
I find log in /var/log/messages
Usage: kibana [options]
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch.
Options:
-h, --help output usage information
-V, --version output the version number
-e, --elasticsearch <uri> Elasticsearch instance
-c, --config <path> Path to the config file
-p, --port <port> The port to bind to
-q, --quiet Turns off logging
-H, --host <host> The host to bind to
-l, --log-file <path> The file to log to
--plugins <path> Path to scan for plugins
Your Answer