log file rotation
Peter Murray
PMurray at law.uconn.edu
Sat Jan 12 22:20:43 EST 2002
--On Thursday, January 10, 2002 8:20 AM -0800 Elizabeth Myers 225-231-3720
<ebadeaux at ebr.lib.la.us> wrote:
> Does anyone out there have experience with log file rotation? [...]
> What I would like to do is to have a new log file starting at midnight
> of each day and keep the old log files indefinitely for right now, until
> we figure out how long we want to keep them, storage methods, etc.
I use a program called 'httplog' to automatically rotate log files:
<http://freshmeat.net/projects/httplog/>
Apache has the option to log to the standard input of another program
('httplog' in this case) rather than just to a file. You give 'httplog' a
filename specification, and it automatically closes, compresses, and opens
a new log file at the time you specify.
Peter
--
Peter Murray, Computer Services Librarian W: 860-570-5233
University of Connecticut Law School Hartford, Connecticut
More information about the Web4lib
mailing list