[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: managing log files
- From: Peter Hickman <peterhickman386@...>
- Date: Fri, 8 Jul 2011 15:48:04 +0100
On a linux based system you could use logrotate to do this for you.
So you create files such as audit.log and logrotate will create (at an
interval of your choice) audit.log.20110708 or audit.log.1
It will also compress them if you want and only keep the latest X
versions and much more besides. Including running custom scripts when
the files are rotated.