loke_71 n00b
Joined: 05 Oct 2004 Posts: 12
|
Posted: Tue Apr 11, 2006 9:33 pm Post subject: apache split-log script problem |
|
|
Hi,
I'm changing from having apache log directly to each vhost, to apache loging everything to access_log, then using the split-log script.
First, I put the following in /etc/apache2/vhosts.d/00_default_vhost.conf
LogFormat "%v %l %u %t \"%r\" %>s %b" comonvhost
CustomLog logs/access_log comonvhost
When I test: /usr/sbin/split-logfile2 < /var/log/apache2/access_log
it works partly. I get an access log file for each domain, but also one log for each ip-address that has visited, what am I doing wrong?
And when I put the following in my crontab, I get the same results in /root. How do I get the files to be stored in /var/log/apache.
* * * * 1 /usr/sbin/split-logfile2 < /var/log/apache2/access_log |
|