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

imported>Handy
imported>Handy
Line 106: Line 106:
The Systemd Journal is capable of advanced functions beyond what has been mentioned here. The above is very good food for thought for people that are wondering if they need to be running '''syslog-ng''' or the like that creates most of the '''/var/log/*log''' files on their systems.
The Systemd Journal is capable of advanced functions beyond what has been mentioned here. The above is very good food for thought for people that are wondering if they need to be running '''syslog-ng''' or the like that creates most of the '''/var/log/*log''' files on their systems.


By experimenting with the above commands one can make an informed decision for themselves, though as mentioned at the beginning of the Journal section, Arch & therefore Manjaro still use syslog-ng to run both the new systemd journal & the old style log file system. So if you find the /var/log/*log files to be redundant & you want to be rid of them, various methods using /etc/cron.hourly & a script in the /etc/logrotate.d directory could do this for you. I'll write further on this later.
By experimenting with the above commands one can make an informed decision for themselves, though as mentioned at the beginning of the Journal section, Arch & therefore Manjaro still run both the new systemd journal & the old style log file system in parallel. So if you find the /var/log/*log files to be redundant & you want to be rid of them, various methods would be effective. I'm currently using /etc/cron.hourly & a script in the /etc/logrotate.d directory. I'll write further on this later.


= Managing /var/log/* files =
= Managing /var/log/* files =
Anonymous user