Difference between revisions of "Limit the size of .log files & the journal"
Limit the size of .log files & the journal (view source)
Revision as of 00:47, 12 February 2014
, 10 years ago→The Journalctl command - a quick reference [http://www.freedesktop.org/software/systemd/man/journalctl.html]
imported>Handy |
imported>Handy |
||
Line 51: | Line 51: | ||
==You don't have to use "sudo" with journalctl== | ==You don't have to use "sudo" with journalctl== | ||
Add your '''user''' to '''adm''' group. This gives your <user> full use of the '''journalctl''' command. No more need to use sudo. | |||
Swap "handy" for your username in the following: | Swap "handy" for your username in the following: | ||
Line 75: | Line 75: | ||
=== Access to full journal containing info from the system & users: === | |||
$ journalctl | $ journalctl | ||
Line 137: | Line 137: | ||
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. | 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. | ||
Currently I'm running my system with syslog-ng (& its dependency) deleted. I deleted all of the log files from the /var/log directory (leaving any that are in their own sub-directories), except for Xorg.0.log , Xorg.0.old , lastlog , btmp & wtmp (pacman.log turned up when pacman was used | Currently I'm running my system with '''syslog-ng''' (& its dependency) deleted. I deleted all of the log files from the /var/log directory (leaving any that are in their own sub-directories), except for Xorg.0.log , Xorg.0.old , lastlog , btmp & wtmp, (pacman.log turned up when pacman was used, depending on what you have installed on your system, you may have applications that create their own logs - which can be turned off - too). | ||
= Managing /var/log/* files = | = Managing /var/log/* files = |