From owner-freebsd-questions@FreeBSD.ORG Thu Jul 17 12:29:26 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 7F2681065685 for ; Thu, 17 Jul 2008 12:29:26 +0000 (UTC) (envelope-from mario.lobo@ipad.com.br) Received: from ipad.com.br (recife.ipad.com.br [200.249.204.129]) by mx1.freebsd.org (Postfix) with SMTP id 922D68FC1A for ; Thu, 17 Jul 2008 12:29:24 +0000 (UTC) (envelope-from mario.lobo@ipad.com.br) Received: (qmail 42186 invoked by uid 1008); 17 Jul 2008 12:02:41 -0000 Received: from unknown (HELO lobo.ipad.com.br) (mario.lobo@ipad.com.br@192.168.64.1) by ipad.com.br with SMTP; 17 Jul 2008 12:02:41 -0000 From: Mario Lobo Organization: IPAD To: freebsd-questions@freebsd.org Date: Thu, 17 Jul 2008 09:04:25 -0300 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> X-Face: ,55PTLsK{\?org*WH[[%>IJpi}pb?lwVxsDL<:}(Ti2yN(w/k\"enXx"?CbN[hp 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: Thu, 17 Jul 2008 12:29:26 -0000 On Thursday 17 July 2008, Zbigniew Szalbot wrote: > Hi, > > Bill Moran: > > In response to Zbigniew Szalbot : > >> Hello, > >> > >> I am just wondering if for the software like Apache the log size > >> matters at all. I rotate httpd logs monthly and each domain has its > >> own log. One is over 145 MB in size. Just curious if I can keep it > >> like that or should rotate more often? I have enough space on HD so > >> the log's size is of no concern for me. I guess I am just asking > >> for best practices advice... Thanks! > > > > There are potential performance issues. I believe that appending to > > a file becomes more expensive when a file gets very large (which is > > obviously the scenario with log files) > > Thank you Bill - this is what I had in mind - whether appending to a > large file will not be an issue? It is currently about 145MB. By the end > of month it will surely be around 300MB. > > > Also, at rotation time, if you're compressing those logs it can be a > > pretty big load to compress 145M. If you're not compressing and not > > moving the files to another partition when you rotate them, then this > > part probably isn't an issue. > > 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. > > Thanks! What would be the proper way to set the rotation of apache logs in=20 newsyslog.conf when there are separate log files for each virtual host? Do I have to rotate them myself via a script in crontab? Thanks =2D-=20 Mario Lobo Seguran=E7a de Redes - Desenvolvimento e An=E1lise IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnol=F3gico e=20 Cient=EDfico