From owner-freebsd-questions@FreeBSD.ORG Sat Jul 19 16:50:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AA8F106566C for ; Sat, 19 Jul 2008 16:50:25 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 1820E8FC0C for ; Sat, 19 Jul 2008 16:50:25 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (unknown [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 2D64DAFC215; Sat, 19 Jul 2008 08:50:24 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 19 Jul 2008 18:50:22 +0200 User-Agent: KMail/1.9.7 References: <487F2525.3030304@lcwords.com> <20080717072023.4b9e1d2f.wmoran@potentialtech.com> <487F2D9B.2010407@lcwords.com> In-Reply-To: <487F2D9B.2010407@lcwords.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807191850.23033.fbsd.questions@rachie.is-a-geek.net> Cc: Zbigniew Szalbot Subject: Re: log size handling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2008 16:50:25 -0000 On Thursday 17 July 2008 13:31:39 Zbigniew Szalbot wrote: > Yes, I am compressing them. Load is not an issue yet but I want to > optimize things that can be optimized. So I guess, rotate more often? I > like the idea of having one monthly log because it is then processed by > web stat software so it is easier to submit one than a couple of them. Even though the awstats code is a bit kludgy perl (as most perl is I suppose), it is able to track the last line that it processed and so doesn't care if it gets half a log file or 'full' ones. I haven't looked at the more recent logprocessors in a while, so there may be others. In short: you may want to look around for logprocessors that can handle intermediate logfiles and still correctly create periodical stats. In these cases it's actually beneficial to do frequent rotations, because the arrays the software keeps in memory, are smaller by definition. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.