> Has anyone configured analog to work with an ftp xferlog? If so,
> could I take a look at the config file?
Here's a simple Perl script I use to convert the xferlog to CLF:
usage: cat xferlog | script.pl > clf.logfile
#!/usr/local/bin/perl
while (<>) {
( $month, $day, $time, $year, $host, $bytes, $file ) =
/\S+\s+(\S+)\s+(\d+)\s+(\d+:\d+:\d+)\s+(\d+)\s+\d+\s+(\S+)\s+(\d+)\s+(\S
+)/;
print "$host - - [";
printf("%2.2d", $day);
print "/$month/$year:$time -0400] \"GET $file HTTP/1.0\" 200 $bytes\n";
}
-matt
Matthew Hanley
Systems Administrator
AppliedTheory Corporation
[EMAIL PROTECTED]
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------