From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 14:37:57 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 CF7BE1065672 for ; Wed, 20 Aug 2008 14:37:57 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4188FC1D for ; Wed, 20 Aug 2008 14:37:57 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 71561 invoked by uid 89); 20 Aug 2008 14:37:56 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 20 Aug 2008 14:37:56 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) References: <5B07C7C5-912C-465D-9837-8DA2F4FE1457@identry.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Almberg Date: Wed, 20 Aug 2008 10:37:54 -0400 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.752.3) Subject: Fwd: rotatelogs is rotating too quickly... 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: Wed, 20 Aug 2008 14:37:57 -0000 > John Almberg wrote: >> I'm a newbie admin and I've just figure out something that will be >> obvious to most on this list... that apache log files can get big, >> fast. > > What apache version you are using? rotatelogs syntax differ a lot > between them. > Version - Apache/2.2.6 (FreeBSD) mod_ssl/2.2.6 OpenSSL/0.9.7m DAV/2 PHP/5.2.5 with Suhosin-Patch rotatelogs doesn't seem to have a --version argument, but if I just type it on the command line it prints out the following usage message: [identry@on:www]> rotatelogs Usage: rotatelogs [-l] [offset minutes from UTC] or Add this: TransferLog "|rotatelogs /some/where 86400" or TransferLog "|rotatelogs /some/where 5M" to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the system time at which the log nominally starts (N.B. if using a rotation time, the 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 or when the file size is reached a new log is started.