From owner-freebsd-questions@FreeBSD.ORG Mon Feb 12 09:32:20 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 C420A16A401 for ; Mon, 12 Feb 2007 09:32:20 +0000 (UTC) (envelope-from a@jenisch.at) Received: from srvdmz13.oekb.co.at (srvdmz13.oekb.co.at [143.245.5.103]) by mx1.freebsd.org (Postfix) with ESMTP id 26EEB13C4B9 for ; Mon, 12 Feb 2007 09:32:19 +0000 (UTC) (envelope-from a@jenisch.at) X-SEF-Processed: 5_0_0_910__2007_02_12_10_32_19 X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1 Received: from msc01-n1 [143.245.2.187] by srvdmz13.oekb.co.at - SurfControl E-mail Filter (5.2.1); Mon, 12 Feb 2007 10:32:18 +0100 Received: from aurora.oekb.co.at ([143.245.9.16]) by MAIL1.oekb.co.at with Microsoft SMTPSVC(6.0.3790.2499); Mon, 12 Feb 2007 10:32:18 +0100 Received: from aurora.oekb.co.at (localhost.oekb.co.at [127.0.0.1]) by aurora.oekb.co.at (8.13.8/8.13.8) with ESMTP id l1C9WId0004202 for ; Mon, 12 Feb 2007 10:32:18 +0100 (CET) (envelope-from a@jenisch.at) Received: (from ej@localhost) by aurora.oekb.co.at (8.13.8/8.13.8/Submit) id l1C9WIjJ004201 for freebsd-questions@freebsd.org; Mon, 12 Feb 2007 10:32:18 +0100 (CET) (envelope-from a@jenisch.at) X-Authentication-Warning: aurora.oekb.co.at: ej set sender to a@jenisch.at using -f Date: Mon, 12 Feb 2007 10:32:18 +0100 From: Ewald Jenisch To: freebsd-questions@freebsd.org Message-ID: <20070212093218.GA4175@aurora.oekb.co.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-OriginalArrivalTime: 12 Feb 2007 09:32:18.0661 (UTC) FILETIME=[B0795950:01C74E88] Subject: Renaming log files while archiving - newsyslog? 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, 12 Feb 2007 09:32:20 -0000 Hi, I want to set up automatic archiving of logfiles and thought about using the standard "newsyslog" for it. My problem though is that during archiving the logs should be renamed to something like "." so the archived files should contain the date/time when they have been archived. For example an original file of "cisco.log" should give "cisco.07-02-07-23-55-00.log". Does anybody out there know if "newsyslog" is capable of this? If not - is there another program that can archive/rename logfiles in such a way? Thanks much in advance for your help, -ewald