Skip to content

Linux Logs

Client versions

  • 3.0.0
  • 3.0.1
  • 3.0.2

Under systemd, the logs are written to syslog.

For all other logging information, refer to the Linux how-to.

Syslog configuration

On some distributions (for example, Raspberry Pi OS), messages may be duplicated between /var/log/syslog and /var/log/daemon.log. This is an effect of the default rsyslog configuration. To disable this behaviour:

  1. Edit /etc/rsyslog.conf and comment out the following line with a #, as shown:

    Note

    On some distributions, such as Ubuntu, this is already commented out.

    # daemon.*            -/var/log/daemon.log
    
  2. Restart Syslog:

    sudo systemctl restart rsyslog
    

Log rotation

On some distributions, the syslog may need rotating more frequently than the default of once per week. This can be adjusted:

  1. Edit /etc/logrotate.d/rsyslog and change:

    rotate 4
    weekly
    
    to
    rotate 7
    daily
    
  2. Restart Logrotate with

    sudo systemctl restart logrotate
    

It is also possible to rotate logs based on size. Please consult the Logrotate documentation for further info.