Blake Crosby has a collection of scripts on his site which are handy for fetching logs and generating stats from a Google Search Appliance (the mini GSA aswell).
You’ll need to install some modules from CPAN before you get started, all the required moduled are included in a comment on each script.
Spamd Statistics
After a quick google round I came across this post on misc@
Sadly the link is now dead, but a copy of the script was reposted onto misc@ again which is handy, I’ve also made a copy of the script available here
Anyway, so I copied the script onto one of my openbsd boxes & fired it up resulting in this rather impressive output:
Spamd statistics: (logfile: /var/log/spamd)
Average
Host Seconds Connections (secs/conn)
great!, spamdb lists a huge list of IP addresses & this is all I’m able to get out of it??
After checking out /etc/syslog.conf
I found that I hadn’t added the entry for logging spamd when I reformatted, a quick edit & a kill -HUP
later things looked much better! 🙂
Spamd statistics: (logfile: /var/log/spamd)
Average
Host Seconds Connections (secs/conn)
201.27.29.243: 12 1 12.00
217.22.88.123: 24 1 24.00
Typo in Webalizer manpage
Whilst writing the weblizer.conf
file for this site I came across a typo in the man page. The keyword Hostname
listed in the manpage is wrong, if used the following error is spat out when webalizer is run:
Warning: Invalid keyword 'Hostname' (/etc/webalizer.conf)
The correct keyword is: HostName