Where is /var/log/syslog in Debian 12

Answers

  • Debian 12 has moved the syslog to journalctl. So just run below command and you will be greeted with the logs running through the screen.

    journalctl -f
    

    If you want to check the logs from for example apache:

    journalctl -u apache2.service
    

    If you want to format the logs as json, just append o json-pretty

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!