I have Kibana 6.7.1 installed on my debian server. I am unable to see logs.
What I did:
-
In the /etc/kibana directory I have configured kibana.yml ** with **logging.dest: stdout
-
Created the file /var/log/kibana.log
-
Changed permission of files with chown
kibana:kibana kibana.log and chmod u+w kibana.log. -
Restarted the service with sudo service kibana restart
Still, I cannot see any content with the kibana.log file.
Any suggestions ?
After following fix suggestions I get error while starting kibana:
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Unit entered failed state.
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Failed with result 'exit-code'.
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
Dec 10 09:17:45 mynode systemd[1]: Stopped Kibana.
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Start request repeated too quickly.
Dec 10 09:17:45 mynode systemd[1]: Failed to start Kibana.
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Unit entered failed state.
Dec 10 09:17:45 mynode systemd[1]: kibana.service: Failed with result 'exit-code'.
2
Answers
Fixed by a combination of:
If you set
logging.dest
tostdout
, it will output to the console, which will redirect to/var/log/messages
, you need to setlogging.dest
to your file.