|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CRONOLOG: Date: Wed, 29 Oct 2003 10:46:54 -0000
Hi,
This list is not quite dead :-)
The reason all you logs are the same is that you have configured it so. You
have used the CustomLog directive in each and told it to log in the custom
format, but used different filenames in each case. I think your config
ought to look something like....
CustomLog "|/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-access_log"
common
ErrorLog "|/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-error_log"
JkLogFile "|/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-mod_jk.log"
SSLLog |/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-ssl_engine_log"
Does that make sense? If you use the directive "CustomLog <filename>
common" four times you just get four access logs.
Regards,
Jim Halfpenny
"Richard Kline" <richard.kline@xxxxxxxxxx>@icarus.demon.co.uk on 29/10/2003
12:03:44
Sent by: owner-cronolog-users@xxxxxxxxxxxxxxxxxx
To: cronolog-users
cc:
bcc:
Subject: CRONOLOG: Date: Wed, 29 Oct 2003 10:46:54 -0000
Hello
Is this list still active? If so I installed cronolog on 4 Apache
servers.
The commands I used
CustomLog "|/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-access_log"
common
CustomLog "|/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-error_log"
common
CustomLog "|/usr/local/sbin/cronolog /backup/logdir/%Y-%m-%d-mod_jk.log"
common
CustomLog "|/usr/local/sbin/cronolog
/backup/logdir/%Y-%m-%d-ssl_request_log" common
CustomLog "|/usr/local/sbin/cronolog
/backup/logdir/%Y-%m-%d-ssl_engine_log" common
After the first 24hrs the logs were filling up with the input of the
access_log, all the logs were the same.
In my httpd.conf files I noticed I had these values set for the
directives and changed them.
ErrorLog /opt/apache/logs/error_log
CustomLog /opt/apache/logs/access_log common
JkLogFile /opt/apache/logs/mod_jk.log
CustomLog /opt/apache/logs/ssl_request_log \"%t %h %{SSL_PROTOCOL}x
%{SSL_CIPHER}x \"%r\" %b"
SSLLog /opt/apache/logs/ssl_engine_log
I changed the above paths to reflect the /backup/logdir that I have set
to cronolog. Restarted everything, and I still got the same result... My
error_log mod_jk.log and ssl logs are all full of what is in the
access_log.
Am I missing something simple, where have I gone wrong? Can I use/ would
Apache recognise something like...
"ErrorLog /backup/logdir/%Y-%m-%d-error_log" for the error log directive
and or the other logs I have.
Thank you in advance.
Rick Kline
|