It is configurable. It is not standardized across distributions, but
/some/ form of log rotation is generally provided.
Red Hat (and its derivatives and probably others) use logrotate for this
purpose, and the configuration for it is in /etc/logrotate.conf and
individual log file configurations (like for Squid) go in the
/etc/logrotate.d/ directory.
The setup of log rotation is automatic in many cases, when the
application (like Squid) is installed from a package, but not when
installed from tarball. In the case of the Squid RPM for Red Hat, a
file that configures rotation for all Squid log files is dropped into
/etc/logrotate.d/squid when the RPM is installed. Many people install
from tarball, and clearly regular log rotation often doesn't occur to
them as a necessary precaution. ;-)
Mark Tinka wrote:
> just to ask. i have been seeing this alot on the
> list.. i was wondering whether it's a configurable
> option, or whether it's only available on certain
> distros of Linux.. because, on SuSE Linux, the system
> usually maintains log files till a certain size, and
> then zips them up into *.gz files.. and then creates a
> new log file, and repeats this process over and
> over...
>
> this happens for all log files, right from mail logs,
> to web server logs, even to squid logs... this is why
> i have never had to do a log rotate or setup the same
> for my squid..
>
> is this feature only specific to SuSE, or can it be
> configured on all/other distros as well..?..
>
> AKNIT
-- Joe Cooper <joe@swelltech.com> Web caching appliances and support. http://www.swelltech.comReceived on Wed Jun 05 2002 - 01:46:30 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:27 MST