From owner-freebsd-questions@FreeBSD.ORG Thu Apr 22 20:19:37 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C050D16A4CE for ; Thu, 22 Apr 2004 20:19:37 -0700 (PDT) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB08F43D3F for ; Thu, 22 Apr 2004 20:19:37 -0700 (PDT) (envelope-from admin2@enabled.com) Received: from enabled.com (localhost.enabled.com [127.0.0.1]) by typhoon.enabled.com (8.12.11/8.12.11) with ESMTP id i3N3JZFO004732 for ; Thu, 22 Apr 2004 20:19:35 -0700 (PDT) (envelope-from admin2@enabled.com) From: "Noah" To: freebsd-questions@freebsd.org Date: Thu, 22 Apr 2004 19:19:35 -0800 Message-Id: <20040423031813.M68872@enabled.com> In-Reply-To: <20040423123602.0152baa1@bofh.spyderweb.com.au> References: <20040322110622.M15380@enabled.com> <20040322115421.GB82093@users.munk.nu> <20040423025219.M5326@enabled.com> <20040423123602.0152baa1@bofh.spyderweb.com.au> X-Mailer: Open WebMail 2.30 20040103 X-OriginatingIP: 64.121.33.4 (admin2) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Re: newsyslog and apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2004 03:19:37 -0000 On Fri, 23 Apr 2004 12:36:02 +0930, Tim Aslat wrote > In the immortal words of "Noah" ... > > this advice does not give me many warm fuzzies - the website appears > > to be down. any other util recommendations that rotate hundreds of > > apache logs files really well. newsyslog is not meeting our > > requirements at the moment. > > Have you tried using the internal rotation code in apache? > > this excerpt from "man rotatelogs" should provide more information > rotatelogs is a simple program for use in conjunction with > Apache's piped logfile feature which can be used like this: > > TransferLog "| rotatelogs /path/to/logs/access_log 86400" > Okay this looks like a viable option. can rotatelogs also age out and delete log files that are older than 30 days? And does it compress the log files as well? - Noah > This creates the files /path/to/logs/access_log.nnnn where > nnnn is the system time at which the log nominally starts > (this time will always be a multiple of the rotation time, so > you can synchronize cron scripts with it). At the end of > each rotation time (here after 24 hours) a new log is started. > > Logging is internal to apache, and doesn't require apache to be > restarted. > > Hope this helps > > Cheers > > Tim > > -- > Tim Aslat > Spyderweb Consulting > http://www.spyderweb.com.au > P: +61 8 82243020 M: +61 0401088479 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"