Apache logfile splitting

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
WaldoMonster
Forum Contributor
Posts: 225
Joined: Mon Apr 19, 2004 6:19 pm
Contact:

Apache logfile splitting

Post 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
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post 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
Post Reply