Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
logfiles tend to grow quickly,
accumulate steadily, and eventually become full of less immediately
useful information. Log management practices need to come into play.
Fortunately, FreeBSD and OpenBSD provide a tool to help manage
logfiles: newsyslog(8). The
newsyslog utility provides
periodic, automated, logfile rotation and compression.
In a
nutshell, newsyslog provides the capability to
take existing logfiles, rename and compress them, and create a new
file to which syslogd can now
write. This logfile rotation can happen based on the passage of time,
or the size of the file in question. The behavior of
newsyslog is controlled by its configuration file