From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 18:26:12 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 4EE0A1065674 for ; Thu, 7 Aug 2008 18:26:12 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp8.server.rpi.edu (smtp8.server.rpi.edu [128.113.2.228]) by mx1.freebsd.org (Postfix) with ESMTP id D00C28FC0A for ; Thu, 7 Aug 2008 18:26:11 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp8.server.rpi.edu (8.13.1/8.13.1) with ESMTP id m77HCjUg021230; Thu, 7 Aug 2008 13:12:46 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <48980C83.9040009@lcwords.com> References: <48980C83.9040009@lcwords.com> Date: Thu, 7 Aug 2008 13:12:45 -0400 To: Zbigniew Szalbot , User Questions From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 0.10 () [Hold at 20.00] COMBINED_FROM X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.228 Cc: Subject: Re: newsyslog.conf / rotating logs based on size AND time 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: Thu, 07 Aug 2008 18:26:12 -0000 At 10:17 AM +0200 8/5/08, Zbigniew Szalbot wrote: > >My question is how can I make sure the logs are rotated when >they grow too large AND they are also rotated at a specified >point in time (start of a new month). > >I am reading man newsyslog.conf and it says: > >If the when field contains an asterisk (`*'), log rotation >will solely depend on the contents of the size field. > >To me it seems to say that when it is not an asterisk (i.e. >when I enter a date), the log rotation is not based solely on >size factor, which in other words should mean it is also based >on time? I haven't looked closely at newsyslog in awhile. I started to write up a reply to you, but in a quick test newsyslog does not seem to be working the way that I expected it to work. It might just be that I was too tired to think straight when I was testing. I'll try to get back to this sometime later today. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA