On 15 sep 2006, at 18.57, Garance A Drosihn wrote:

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.

Ok.

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.

This is exactly what I plan to do.  I don't want to bring in too many
ports and 3rd party stuff.

Thank you, and all other nice ppl on the list, for your replies.

Mackan

Reply via email to