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

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

From Manjaro
imported>Handy
imported>Handy
Line 3: Line 3:
Generally only server administrators have use for logs that go back any length of time. Few users who run distros on their desktop, Notebook, Netbook... machines, need to keep such huge log files, histories going back for many months or even years, on their system, are a waste of space & also makes viewing your log files more cumbersome.  
Generally only server administrators have use for logs that go back any length of time. Few users who run distros on their desktop, Notebook, Netbook... machines, need to keep such huge log files, histories going back for many months or even years, on their system, are a waste of space & also makes viewing your log files more cumbersome.  


The systemd journal has taken the place of log files though it has an option for the standard type log files to be created & maintained in the usual fashion, which is the way that Manjaro is set to use. Unfortunately there are still plenty of bugs in systemd & using the following method for limiting the size of the /var/log/journal/* works for some & not others, it also works more effectively for some & somewhat effectively for others... That will eventually change.
 
===== The first topic on this page will briefly cover the '''systemd journal''' =====
 
The systemd journal has taken the place of log files though it has an option for the standard type log files to be created & maintained in the usual fashion, which is the way that Manjaro is set to use. Unfortunately there are still plenty of bugs in systemd & using the following method for limiting the size of the /var/log/journal/* works for some & not others, it also works more effectively for some & somewhat effectively for others... That should eventually change.
 
 
===== The second topic will cover handling log files, in some depth =====
 
This topic will go into far more in depth, covering the use of the '''logrotate''' command, '''logrotate.conf''', the '''/etc/cron.daily cron.weekly cron.monthly cron.yearly''', some ways to run created scripts, & a mention of the '''crontab''' method of running a script also. I'll try to make this section accessible to as many people as possible, which means this will be a long page.


<br clear="all"/>
<br clear="all"/>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.