Page 1 of 1

Apache logfile splitting

Posted: Fri May 21, 2004 4:29 am
by WaldoMonster
Hello is it possible to split an Apache logfile by IP address?
So that I get a LAN and WAN logfile.

For example the LAN IP addresses are:
192.168.1.0/255.255.255.0
127.0.0.1
And all other IP addresses are connected by WAN.

Thanks for the help,

Waldo Monster

Posted: Fri May 21, 2004 7:29 am
by delorian
Read about virtual hosts in apache documentation. Each VH can have it's own access_log, error_log, *something*_log. http://httpd.apache.org/docs/vhosts/index.html