Search code examples
loggingdebiankibana

Kibana - Cannot output to log file


I have Kibana 6.7.1 installed on my debian server. I am unable to see logs.

What I did:

  1. In the /etc/kibana directory I have configured kibana.yml ** with **logging.dest: stdout

  2. Created the file /var/log/kibana.log

  3. Changed permission of files with chown kibana:kibana kibana.log and chmod u+w kibana.log.

  4. 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'.

Solution

  • Fixed by a combination of:

    1. setting logging.dest in /etc/kibana/kibana.yml.
    2. setting correct user permission to kibana.log (chown and chmod)
    3. freeing up space in /var/log (space was full! found in journal)