[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iptrafylize - Perl analysis script




Hi,

Id be glad to include this in the main Web page too once you feel it's 
ready for general consumption.

On Sun, 19 May 2002, Greg Fenton wrote:

> Well, here is my first stab at a Perl script to analyze the log
> file from IPTraf.
> 
> This script could stand to be optimized somewhat, but it works.
> 
> The script currently processes an ip_traffic*.log file and dumps
> summarization of the number of bytes used per IP address per protocol
> (currently TCP, UDP and ICMP).
> 
> Though it has basic output, the structure of the script allows it
> to easily be enhanced.
> 
> I will gladly add more to the script if people can tell me what they
> are
> looking for.
> 
> I have developed and tested it with Perl 5.6.1.  To run the script, you
> need to install the IO::Interface module from CPAN.  To do this:
> 1. run "perl -MCPAN -e shell"
> 2. at the prompt, type "install IO::Interface
> 3. when the prompt comes back, type "exit"
> 
> 
> To get a usage string for this script, type "perl iptrafylize.pl -x"
> 
> Run without any arguments, the script will analyze the log file
> /var/log/iptraf/ip_traffic-1.log.  Use "-v" or "-vc" for verbose
> output, "-d" and "-dd" for debug and debug2 output.
> 
> 
> 
> Please, give me feedback.  If the script works for you, I'd like to
> know.  If you'd like to see some changes/enhancements, let me know.
> 
> greg_fenton.
> 
> =====
> Greg Fenton
> greg_fenton@yahoo.com
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com