Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2007 10:32:18 +0100
From:      Ewald Jenisch <a@jenisch.at>
To:        freebsd-questions@freebsd.org
Subject:   Renaming log files while archiving - newsyslog?
Message-ID:  <20070212093218.GA4175@aurora.oekb.co.at>

next in thread | raw e-mail | index | archive | help

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 "<basename>.<YY-MM-DD-HH-MM-SS>" 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070212093218.GA4175>