Re: /var/log cleanout
On: Tue, 25 Aug 1998 13:14:14 -0500 Mark Panzer writes:
>
> Are system maintainers (su's) supposed to clean out the /var/log
> directory after a while? Mine is up to 15MB and I don't think I
> really need to see if I connected to the internet on June 2nd. Also
> is there a program which cleans this for you, or what is the correct
> way? Thanks.
This is the job of the cron jobs in /etc/cron.{daily,weekly,monthly}.
In these periods the logs are rotated (or rather shifted) with older
versions being compressed to save space (you probably have noticed it,
messages, messages.0, messages.1.gz, ...). 15 MB seems to be okay, I
have 13 MB on a standalone system.
If you really want to throw away more file, edit the
/etc/cron.daily/syslogk (and maybe some others) and change the savelog
line to use another value as parameter to the -c option (I have 7
configured in my files).
Read savelog(8) for more information on this program. Adjusting the
cron files is safe as they are (to be) considered as configuration
files which will be preserved by package updates.
Torsten
Reply to: