Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 30454 invoked from network); 3 Jun 2008 16:20:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 16:20:47 -0000 Received: (qmail 15149 invoked by uid 500); 3 Jun 2008 16:20:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15135 invoked by uid 500); 3 Jun 2008 16:20:40 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 15124 invoked by uid 99); 3 Jun 2008 16:20:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 09:20:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of howachen@gmail.com designates 209.85.132.246 as permitted sender) Received: from [209.85.132.246] (HELO an-out-0708.google.com) (209.85.132.246) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 16:19:51 +0000 Received: by an-out-0708.google.com with SMTP id b2so390896ana.102 for ; Tue, 03 Jun 2008 09:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=q8G3xZbTLXbpznIkkmAPkoJDsygIbIVQy2v3eatAVdY=; b=gtX2ViDBnYPtw6wT1iKiqB0FQnLi0TDE8tt8IHJtJh/LrPxQf7V73dX8Yx/ODNTKVgyvwrj9VZnwvW2nZj39ip/mSqd/zyFUOSgAd67hc3CmWFni2JbW1P+ITpAYRdWCEOF3fWlw5tmuF9KrlcG1sCzf3leHT6ofmmytMBHWp78= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rHg7J8gwjipRpFWUPEIFFFxJXAJKKy9eeTCKAceOuyk9img/7sXL1r/v+zwVjtYY2X487U66EzGiu2TRHTr5HTpDnrLu+c68Y9HSgIeTeV8jqTsR3Dlaes02j7HnQ6AmvqUlQKYSEltR0iqGOMUm5fHMYSaM6ThATp1l3HCWGlw= Received: by 10.100.171.10 with SMTP id t10mr4454669ane.18.1212510008155; Tue, 03 Jun 2008 09:20:08 -0700 (PDT) Received: by 10.100.8.14 with HTTP; Tue, 3 Jun 2008 09:20:08 -0700 (PDT) Message-ID: Date: Wed, 4 Jun 2008 00:20:08 +0800 From: "howard chen" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7012DD7FC6204C8F8DF931A21300C84F@nmm.local> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache Log File 2GB On Tue, Jun 3, 2008 at 11:28 PM, Stusynski, Dan wrote: > To rotate the logs you can use Apaches piped rotatelogs: > > http://httpd.apache.org/docs/2.2/programs/rotatelogs.html > > Put something like the following in your httpd.conf (or whereever your logging is define), 'CustomLog "| /bin/rotatelogs -l /logs/access_log%Y-%m-%d_%H_%M_%S 2048M" custom' > > That should rotate at 2 gigs. Personally I prefer "logrotate", which can be scheduled as cron and do the rotation for you. >> yum install logrotate (If you are using RH/FC) Howard. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org