3 # From http://docs.indymedia.org/view/Sysadmin/ApacheLogsWithoutIPs
6 # Cleaned up -zak 2005-04-10
10 # check we're called with exactly one argument, our output file name
11 if ( @ARGV != 1 ) {die "I need exactly one argument <output file>";}
15 open (OUT,">> $out") or die "Failed to open $out for writing: $! \n";
17 # turn on buffer autoflush so tail -f error.log works
18 # (rather than waiting till file handle is closed
19 my $outf = select(OUT);
24 # Strip IP's and replace with 0.0.0.0
26 s/\[client.*\]/\[client 0.0.0.0\]/;