At 2:57 PM +0200 9/15/06, Mackan wrote:
Hi!
What is the preferred way of rotating Apache's logfiles?
I have many virtual domains, each with its own access and error logfile.
I'm using CustomLog, not TransferLog. Apache is chrooted.
Adding every logfile to /etc/newsyslog.conf is one way, but hard to
maintain. Is Apache's own rotatelogs program the way to go?
Fwiw, the version of newsyslog in FreeBSD supports pattern-matching
on the logfile names. However, it may not have some features that
are in the version of newsyslog that comes with OpenBSD.
If you don't want to pull that in, then maybe setup a separate
newsyslog.conf file (and a second cronjob for it). That way it should
be easier to use a shell script to create the appropriate entries for
that conf file, without worrying that you're going to clobber any of
the standard system entries.
--
Garance Alistair Drosehn = [EMAIL PROTECTED]
Senior Systems Programmer or [EMAIL PROTECTED]
Rensselaer Polytechnic Institute or [EMAIL PROTECTED]