Home > apachelogtools

apachelogtools

Apachelogtools is a project mainly written in PYTHON and RUBY, it's free.

Misc scripts for pulling data from combined apache log files

Set of assorted scripts for working with a combined log file, in my case generated by apache logging with syslog to a central syslog-ng server:

#Apache Config
CustomLog "|/root/scripts/logger.pl" vcombined
#logger script
#!/usr/bin/perl -w

use strict;

use Sys::Syslog qw( :DEFAULT setlogsock );

setlogsock('unix'); openlog('apache', '', 'local4');

while (my $log = ) { syslog('notice', $log); } closelog;

clienttop.py - live updating list of which IPs requests are coming from vhosttop.py - live updating list of which vhosts are serving traffic and response code breakdown whichservers.rb - live updating table of which vhosts are landing on which web servers in a cluster