Renaming log files while archiving - newsyslog?

Ewald Jenisch a at
Mon Feb 12 09:32:20 UTC 2007


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

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,

More information about the freebsd-questions mailing list