From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 06:35:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 891CE16A4CF for ; Fri, 5 Mar 2004 06:35:50 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B3BD43D39 for ; Fri, 5 Mar 2004 06:35:50 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <40489043.1080508@geminix.org> Date: Fri, 05 Mar 2004 15:35:47 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org References: <20040303155637.19307.qmail@web41414.mail.yahoo.com> In-Reply-To: <20040303155637.19307.qmail@web41414.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AzGQX-000HlA-00; Fri, 05 Mar 2004 15:35:49 +0100 Subject: Re: apache log files rotation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 14:35:50 -0000 Dave McCammon wrote: > --- fbsd_user 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