Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Mar 2004 15:35:47 +0100
From:      Uwe Doering <gemini@geminix.org>
To:        questions@freebsd.org
Subject:   Re: apache log files rotation
Message-ID:  <40489043.1080508@geminix.org>
In-Reply-To: <20040303155637.19307.qmail@web41414.mail.yahoo.com>
References:  <20040303155637.19307.qmail@web41414.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dave McCammon wrote:
> --- fbsd_user <fbsd_user@a1poweruser.com> wrote:
>>Can apache logs be rotated by /etc/newsyslog.conf?
>>If not, how is it normally done?
>>
>>_______________________________________________
> 
> Here is the relevent portion of my newsyslog.conf
> 
> /var/log/httpd-access.log     640  14    *    $D0   Z 
>  /var/run/httpd.pid
> /var/log/httpd-error.log      640  14    *    $D0   Z 
>  /var/run/httpd.pid
> 
> "man newsyslog" for more info on the fields.

Just a hint in case you plan on running a web statistics program over 
the access log: add 'B' to the flags column for 'httpd-access.log', 
resulting in 'BZ'.  This will omit the 'logfile turned over due to ...' 
lines generated by 'newsyslog', which the statistics program may 
otherwise complain about.

    Uwe
-- 
Uwe Doering         |  EscapeBox - Managed On-Demand UNIX Servers
gemini@geminix.org  |  http://www.escapebox.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40489043.1080508>