logs/summarize.pl

[email protected] (Matt Simerson) Fri, 29 Jun 2012 17:13:01 -0700
Newsgroups perl.qpsmtpd
Message-ID <[email protected]>
A log summarizing tool. It provides a real time log view like this:



https://github.com/qpsmtpd-dev/qpsmtpd-dev/blob/master/log/summarize.pl

It depends on two things:

	File::Tail
	The Plugin Registry: https://github.com/qpsmtpd-dev/qpsmtpd-dev/blob/master/plugins/registry.txt

I need your help to make it better.

You will likely have plugin log entries that aren't recognized. They'll appear in Data::Dumper format, so they'll be easy to recognize. Send me samples of the log entries. 

Fixing them might be as simple as adding entries to the registry file. If you do, send me a diff.

More than likely, you won't get a screen full of nice little x, o, and dashes, one for every plugin you have running, because the older plugins had little consistency in their logging. Instead you'll get substrings of log messages. It won't be as pretty, but it should still work.

Bonus: improvements to this logging utility will also improve the log2sql.pl log as well. 

Matt