#!/bin/sh # httpd.conf: ... CustomLog /var/log/httpd/`virtual-host-name`-al # # cd /etc/webalizer; ls ====>>>> `virtual-host-name1.conf virtual-host-name2.conf ....... # this script invokes the webalizer (a log analysis program) passing it each vurtual server's access # log file name ( minus the -al on the end) to produce per-virtual server output # Mon Nov 18 00:00:57 CST 2002 # added sed function to filter out chad's and jack's looking at the pages cd /var/log/httpd for i in `ls *-al` do ext=`basename $i | sed -e 's/\(.*\)-al/\1/'` sed '/192\.168/D' $i > $ext.tmp /usr/bin/webalizer -c /etc/webalizer/$ext.conf rm $ext.tmp done