Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2004 12:36:02 +0930
From:      Tim Aslat <tim@spyderweb.com.au>
To:        freebsd-questions@freebsd.org
Subject:   Re: newsyslog and apache
Message-ID:  <20040423123602.0152baa1@bofh.spyderweb.com.au>
In-Reply-To: <20040423025219.M5326@enabled.com>
References:  <20040322110622.M15380@enabled.com> <20040322115421.GB82093@users.munk.nu> <20040423025219.M5326@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the immortal words of "Noah" <admin2@enabled.com>...
> this advice does not give me many warm fuzzies - the website appears
> to be down.  any other util recommendations that rotate hundreds of
> apache logs files really well.  newsyslog is not meeting our
> requirements at the moment.

Have you tried using the internal rotation code in apache?

this excerpt from "man rotatelogs" should provide more information
       rotatelogs  is  a  simple  program for use in conjunction with
Apache's       piped logfile feature which can be used like this:

          TransferLog "| rotatelogs /path/to/logs/access_log 86400"

       This creates the files /path/to/logs/access_log.nnnn where nnnn
is  the       system time at which the log nominally starts (this time
will always be       a multiple of the rotation time, so you can 
synchronize  cron  scripts       with it).  At the end of each rotation
time (here after 24 hours) a new       log is started.

Logging is internal to apache, and doesn't require apache to be
restarted.

Hope this helps

Cheers

Tim

-- 
Tim Aslat <tim@spyderweb.com.au>
Spyderweb Consulting
http://www.spyderweb.com.au
P: +61 8 82243020    M: +61 0401088479



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040423123602.0152baa1>