From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1101 invoked from network); 9 Oct 2006 16:42:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Oct 2006 16:42:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 1429 invoked from network); 9 Oct 2006 16:42:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Oct 2006 16:42:47 -0000 Received: (qmail 9702 invoked by alias); 9 Oct 2006 16:42:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10818 Received: (qmail 9690 invoked from network); 9 Oct 2006 16:42:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Oct 2006 16:42:35 -0000 Received: (qmail 117 invoked from network); 9 Oct 2006 16:42:35 -0000 Received: from s1tank.virtdom.com (216.240.101.50) by a.mx.sunsite.dk with SMTP; 9 Oct 2006 16:42:33 -0000 Received: (qmail 7377 invoked by uid 89); 9 Oct 2006 17:41:02 -0000 Received: from ool-44c5a15b.dyn.optonline.net (HELO venti) (brian@aljex.com@68.197.161.91) by s1tank.virtdom.com with SMTP; 9 Oct 2006 17:41:02 -0000 Message-ID: <025101c6ebc1$e7b126c0$6400000a@venti> From: "Brian K. White" To: References: <20061009073941.GA17078@localhost.localdomain> Subject: Re: quickesy way to zero HUGe log files Date: Mon, 9 Oct 2006 12:42:01 -0400 Organization: Aljex Software MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 ----- Original Message ----- From: "Stanislaw Halik" To: Sent: Monday, October 09, 2006 3:39 AM Subject: Re: quickesy way to zero HUGe log files > On Mon, Oct 09, 2006, zzapper wrote: >> May be O/T what would be the quickest way to zero my huge "in use" Apache >> log files?. I usually vim them, but they've got so huge that that's a >> pain > > Truncate them to 0 bytes? ": > /log/file" will do. > You should probably just add them to the log rotater config file. Suse for example comes with a log rotater installed already and you just need to add file names to /etc/logrotate.conf Or install your own.This is a simple one I've been using for years on sco systems. http://www.aljex.com/bkw/sco/#prune This way they don't grow forever, nor do you lose data, until it grows old enough that you don't care about it and you decide how old that is, if ever. You could set it up to keep creating new date-based filenames forever if you wanted. Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!