From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 14:03:54 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 8F14D1065689 for ; Wed, 20 Aug 2008 14:03:54 +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 16ECD8FC22 for ; Wed, 20 Aug 2008 14:03:53 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 66446 invoked by uid 89); 20 Aug 2008 14:03:53 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 20 Aug 2008 14:03:53 -0000 In-Reply-To: <85c4b1850808200649l2cf42462nfa7d64fe09fa1253@mail.gmail.com> References: <482E252F-3819-46DD-A272-A174C1B41333@identry.com> <85c4b1850808200649l2cf42462nfa7d64fe09fa1253@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) 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:03:50 -0400 To: Riaan Kruger X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions@freebsd.org Subject: Re: 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:03:54 -0000 > That does not look like 5 Meg but 5 Minutes. > I don't think so... From the man pages: CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common This configuration will rotate the logfile whenever it reaches a size of 5 megabytes. ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_ %M_%S 5M" This configuration will rotate the error logfile whenever it reaches a size of 5 megabytes, and the suffix to the logfile name will be created of the form errorlog.YYYY-mm-dd-HH_MM_SS.