Log files in /var/log

Ideas and plans to talk about
Antworten
RVRoadTrip

Some of these take up a large amount of disk space. Can any of the older ones be safely removed?  Which ones should not be removed?

Some are in sub folder /apache2 and some are compressed (.gz files).

Thanks!
Zuletzt geändert von RVRoadTrip am 19.08.2011, 18:34, insgesamt 1-mal geändert.
Tiger

Logrotate should clean up the /var/log directory automatically. Old logs get first compressed (.gz) and then deleted after a while. How long the different logs are kept can be adjusted in /etc/logrotate.conf and /etc/logrotate.d/*

If you have any logfiles which are not handled by logrotate, you can add a your own scripts in /etc/logrotate.d. "man logrotate.conf" will give you further information and some examples.
RVRoadTrip

Awesome, thanks.
Antworten