Difference between revisions of "Limit the size of .log files & the journal"

imported>Richard
imported>Handy
Line 12: Line 12:
==== The first topic on this page will briefly cover the '''systemd journal''' ====
==== The first topic on this page will briefly cover the '''systemd journal''' ====


The systemd journal has taken the place of log files though it will happily run in parallel with the standard type log files. These are still created & maintained by default in Arch & Manjaro, which means that even if you delete syslog-ng & all of the /var/log/*log files on reboot you will find the log files have been automatically created again, although this will change in the future.
The systemd journal has taken the place of log files though it will happily run in parallel with the standard type log files. These are still created & maintained by default in Arch & Manjaro. If you delete syslog-ng & all of the /var/log/*log files on reboot you will find that some log files will be automatically created again. On my machine after having deleted syslog-ng & all of the /var/log/*.log files (except for the Xorg.0.log files), my machine now has the following (wtmp & btmp are created on boot by the /etc/logrotate.conf file) contents in my /var/log/ :
 
journal/
squid/
Xorg.0.log
Xorg.0.log.old
btmp
faillog
lastlog
pacman.log
wtmp


==== The second topic will cover handling log files ====
==== The second topic will cover handling log files ====
Anonymous user