[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] combined-access on raq3



>on my RAQ3 the combined -access is 0 bytes
>long. Anyone know which other file might be
>usable for this - without affecting the site's
>web.log process ?

You could set up Apache to create a new, separate log file 
for this purpose without interfering with the existing
configuration - add this Line to the Apache config:

CustomLog /var/log/httpd/web-combined combined

(check if log-path is the same on RAQ3 and if the "combined" format 
has been configured - ouput of 'grep LogFormat /etc/httpd/conf/*.conf' 
should include
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
)

NOTE: I'm not sure if adding a line to the apache config 
might already void your Cobalt warranty. Make a backup of 
httpd.conf.

In order to limit the size of this new logfile, you might 
want to set up logrotate as follows:

(save as /etc/logrotate.d/webcombined)
== cut ===
/var/log/httpd/web-combined {
   compress
   size 30M
    postrotate
        killall -USR1 httpd
    endscript
}
== cut ==

Regards,
 Thomas