From owner-freebsd-questions@FreeBSD.ORG Thu Feb 15 07:27:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 44F2F16A408 for ; Thu, 15 Feb 2007 07:27:22 +0000 (UTC) (envelope-from peter@placidpublishing.net) Received: from mail.placidpublishing.net (placidpublishing.net [72.232.50.130]) by mx1.freebsd.org (Postfix) with ESMTP id 25A2513C4A5 for ; Thu, 15 Feb 2007 07:27:22 +0000 (UTC) (envelope-from peter@placidpublishing.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.placidpublishing.net (Postfix) with ESMTP id 5AC1B50817 for ; Thu, 15 Feb 2007 01:33:53 -0600 (CST) Received: from mail.placidpublishing.net ([127.0.0.1]) by localhost (mail.placidpublishing.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20213-06 for ; Thu, 15 Feb 2007 01:33:51 -0600 (CST) Received: from [192.168.1.20] (c-67-175-92-171.hsd1.il.comcast.net [67.175.92.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.placidpublishing.net (Postfix) with ESMTP id 0B9E75080B for ; Thu, 15 Feb 2007 01:33:50 -0600 (CST) Message-ID: <45D40B6B.7090107@placidpublishing.net> Date: Thu, 15 Feb 2007 01:27:39 -0600 From: Peter Pluta Organization: Placid Publishing, LLC User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Subject: Apache Rotate Logs and Log Rotate X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: peter@placidpublishing.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 07:27:22 -0000 I have Apache making separate log files for each of my virtual hosts and putting them in /home/vhostname/log. Rotate logs makes a new log every 24 hours, but the logs quickly add up and since the sites are fairly busy the logs are at times over 5gigs. Is there any way to make rotate logs delete the log files after two days? Someone recommended me Log Rotate (from the ports tree), but this program does basically what Rotate logs does; except it makes things more complicated because it needs to restart apache and such. Is there a easy way to just have Apache's rotatelogs rotate the logs and then delete them after two days? Any feedback, suggestions, or comments would be greatly appreciated. Thanks, Peter