From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 21:00:37 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 255381065680 for ; Mon, 22 Sep 2008 21:00:37 +0000 (UTC) (envelope-from donread@sbcglobal.net) Received: from smtp105.sbc.mail.mud.yahoo.com (smtp105.sbc.mail.mud.yahoo.com [68.142.198.204]) by mx1.freebsd.org (Postfix) with SMTP id BEDF28FC26 for ; Mon, 22 Sep 2008 21:00:36 +0000 (UTC) (envelope-from donread@sbcglobal.net) Received: (qmail 85208 invoked from network); 22 Sep 2008 20:33:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=PEM1Ed6C2PuzcFGINf7RsMUZH7wnnKDsl3JXE3Z9ZwLhbnGOTzMRqGvq53c/19U1IxJ28h/IAOhOvF/XCnB1evk6OUg6EB+l89mAGGNXxoLHxKcCQAQ8An+si1gUPn4aHJSMP5cTgCifvAUnBp10eiB2iGVUFm4g0pWYncB/N1Y= ; Received: from unknown (HELO localhost) (donread@216.63.106.9 with login) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 22 Sep 2008 20:33:55 -0000 X-YMail-OSG: XahK8E0VM1mO7ooFNTVgR7AsHYvMAutU7ivz5RqBexvRazlpSfSaQ7X7Ptgv2wHzKksjK.wCl8ctzXib45iANNMT9io.N7wSxjpq0HvLHJg0JwWzpoopEvW_vLrMsQnjofg.BE9RVOp4mA_QKnr.cLgF6iT_uVa7HpBqMQ1prGby7ZWBkmcna8w- X-Yahoo-Newman-Property: ymail-3 Date: Mon, 22 Sep 2008 15:33:54 -0500 From: Don Read To: Zbigniew Szalbot Message-ID: <20080922153354.17308c21@sbcglobal.net> In-Reply-To: <8f0962110046cceccab7b56c1a8dd37d@relay.lc-words.com> References: <8f0962110046cceccab7b56c1a8dd37d@relay.lc-words.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: User Questions Subject: Re: Fwd: 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: Mon, 22 Sep 2008 21:00:37 -0000 On Thu, 07 Aug 2008 17:25:39 +0200 Zbigniew Szalbot said: > Hello all, > > Would anyone want to comment if it is possible to rotate logs with > newsyslog based on size and time (using FBSD 7.0-Release)? > > Many thanks! Have you considered using a separate .conf file? cat /etc/crontab ... # Rotate log files every hour, if necessary. 0 * * * * root newsyslog # Rotate apache logs once a month 0 0 1 * * root newsyslog -f /usr/local/etc/nsl.http.conf # Regards, -- Don Read donread@sbcglobal.net It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.