|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CRONOLOG: Mod_cronolog ?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Feb 04, 2003 at 09:32:17PM -0800, Jeff Bert wrote:
> Does this still accept the modifiers of how to rotate the logs? Like the
> standard binary does?
>
> My current install uses the %B modifier to rotate the logs every month only:
>
> ErrorLog "|/usr/local/sbin/cronolog /usr/local/apache/logs/error_log.%B"
> CustomLog "|/usr/local/sbin/cronolog /usr/local/apache/logs/access_log.%B"
> combined
>
> So with mod_cronolog, I'd assume that this should be:
>
> ErrorLog /usr/local/apachelogs/error_log.%B
> CustomLog /usr/local/apachelogs/access_log.%B combined
>
> Removing the "/... "
>
> Is that correct?
Not quite I'm afraid. First of all - in my experience - mod_cronolog won't
work for the ErrorLog (unless there's something I've missed, anyone?). For
the other statement, you need to add something like:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
TransferLog "/usr/local/apachelogs/access_log.%B.log"
Which will do the trick.
Beware, however, I am experiencing problems with mod_cronolog right now -
timestamps are messed up in 50% of the cases or so. So please DO test well
before you deploy!
Bye for now,
Ward.
- --
Pong.be -( "Fools ignore complexity. Pragmatists suffer it. Some )-
Virtual hosting -( can avoid it. Geniuses remove it." -- Perlis's )-
http://pong.be -( Programming Proverb #58, SIGPLAN Notices, Sept. 1982 )-
GnuPG public key: http://gpg.dtype.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE+QNU7qC3O5tzmh5wRAqjFAJ9PV6c7GiR+pTY5rQWu6EvCspN7OQCfbl6v
tzuzB9Lgy9ekABW8x2/vZOg=
=pcxG
-----END PGP SIGNATURE-----
|