14.10.2009 21:49, Mike Cardwell kirjoitti:
Jari Fredriksson wrote:

Jari,

How did you produce the great looking statistics?

Thanks,
Rick


It's a perl script called sa-stats.pl

I tried not google it for you, but could not find the original. Many
scripts with the same name though..

I put that to my server as http://www.iki.fi/jarif/sa/sa-stats.pl

I have modified the default file so that is scans /var/log/messages
which works for me (Debian), the script not runs without arguments.

That's a very nice script. I made one small change to it to make it work
with gzip compressed logs. I replaced:

open(F,"$log");

With:

open(F,$log=~/\.gz$/i?"zcat $log|":"$log");


I took that modification into my copy, and updated the script in my
website too.

Works great, thanks!

Attachment: pgpg1OaMRNUnh.pgp
Description: PGP signature

Reply via email to