From owner-freebsd-questions Tue Aug 7 1:29:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from r2d2.twowaytv.co.uk (smeg.twowaytv.co.uk [194.6.2.163]) by hub.freebsd.org (Postfix) with ESMTP id 5486E37B403 for ; Tue, 7 Aug 2001 01:29:21 -0700 (PDT) (envelope-from alex@twowaytv.co.uk) Received: from localhost (alex@localhost) by r2d2.twowaytv.co.uk (8.11.1/8.11.1) with ESMTP id f778T6P99961; Tue, 7 Aug 2001 09:29:09 +0100 (BST) (envelope-from alex@twowaytv.co.uk) X-Authentication-Warning: r2d2.twowaytv.co.uk: alex owned process doing -bs Date: Tue, 7 Aug 2001 09:29:05 +0100 (BST) From: Alex Dyas Reply-To: To: Rob Hudson Cc: Subject: Re: rotating web logs In-Reply-To: <20010806130837.Y12705@cogit8.org> Message-ID: <20010807092507.K78333-100000@r2d2.twowaytv.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG nice trick i've picked up is to do : cat /dev/null > /usr/local/apache/logs/access_log to clear out the old logs instead of bouncing the server. saves you any downtime and potential problems restarting apache. alex.. On Mon, 6 Aug 2001, Rob Hudson wrote: > I just use a perl script attached to a cron job. At the start of a > new month, it copies the combined_log for each virtual we host to > YYYY-MM.combined_log and restarts apache. Pretty simple. > > > On 20010806.1548, Marius Kirschner said ... > > > > I was wondering, what do people use to rotate the apache web logs? I > > noticed there a "rotatelogs" command but this one doesn't work from > the > > command line apparenly and I'd like to schedule a cron job to do that. > > Thanks, > > > > ---Marius > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message