Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache split-log script problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
loke_71
n00b
n00b


Joined: 05 Oct 2004
Posts: 12

PostPosted: Tue Apr 11, 2006 9:33 pm    Post subject: apache split-log script problem Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum