"If you have a rather busy system, you could get overwhelmed
by system logs eating up disk space. Log files are important
records of system behavior, system resource usage, application
usage, and user access. Every such log file is worth a scan for the
unusual and may need to be archived for purposes of
"Linux provides you with a utility called logrotate, which
allows you to implement a log archiving policy for your
system. In my opinion, you can't get anything more simple and
concise than what logrotate offers you--use it!"
"logrotate rotates and compresses system logs. This is typically
found under the directory subtree /var/log/. It also allows you to
specify when a log file has to be removed. You can customize
logrotate to your liking by editing its configuration files,
/etc/logrotate.conf and /etc/logrotate.d. The former is the global
configuration file and the latter is a directory that contains
specific instructions for various applications. This organization
allows selective control over how you might want to handle logs
from different applications. The only files for which specific
instructions should be present in the global configuration file are
/var/log/wtmp and /var/log/lastlog."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.