On Thu, 27 Mar 2003, Mark Constable wrote:

> On Thu, 27 Mar 2003 07:52 pm, Thomas von Hassel wrote:
> > Anyone know of a good log analyser/ mail statistics tool for courier ?
> > (the whole package, esmtp, pop, imap etc.)
> >
> > (yes i have tried the webmin module and i didnt like it)
> 
> I did some tests with it last night and found it uses up to 3 times
> the amount of ram to process results as is the size of the log file,
> and in our case that goes close to 500mb a day. Doing a simply sort
> on any of those webmin columns means the perl code has to completely
> run through the whole procedure of producing huge arrays in memory.
> 
> Completely unusable. However a lot of the perl code to actually parse
> the courier logs is available in that webmin module so my thoughts
> are to rewrite it so it produces an intermediate "thin" log file
> format, similar to the in memory arrays but to a file, and rely on
> that intermediate log file for producing viewable reports and stats.
> 
> FWIW. Maybe someone has already got "the right tool" ?

I was planning on grabbing the webmin source (it's really just a
glorified tarball), figuring out what the author did, and reimplement
(possibly better) in awk and/or python.  awk is /vastly/ quicker than
any other regex-capable language I've ever used, incl. perl.  Using awk
to produce an intermediate format, and then Python or another tool for
'interpreting' (human display) is probably a good bet.  I /was/ going to
consider output to XML, thus allowing one to use xsltproc with the right
xsl stylesheet to produce nice html or what-not.

--
Applying computer technology is simply finding the right wrench to
  pound in the correct screw.

Jon Nelson <[EMAIL PROTECTED]>
C and Python Code Gardener


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to