>Hi,
>
>Is there some analysis tool where i can generate an output for each
>subnet that accesses squid? We have a lot of class C nets using it and
>some class B netīs, and i need the logs splittet by subnet access....
>
>Lars
a simple gawk script would do that
gawk '{ if ( $3 =~ aa.bb.cc. ) {
$c += $5;
} elsif ( $3 =~ aa.bb.dd. ) {
$d += $5;
} else {
$o += $5;
}
} END {
print "subnet c - $c bytes\n";
print "subnet d - $d bytes\n";
print "not in defined subnets - $o bytes";
}' < squidlogfile
aa.bb.cc. would of course be replaced with you class c subnet addresses
Regards
Karl
=8)
Received on Thu Jun 18 1998 - 04:35:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:40:44 MST