procmail
[Top] [All Lists]

Re: simple procmail log parsing script

2003-09-05 03:21:18
On Mon, 1 Sep 2003, culley harrelson wrote:

Here is a simple script for parsing procmail log files:

http://mudhut.org/index.cgi?LogSum

Don't know if anyone will be interested, but there it is.

culley

Hey, culley....

Nice script. However Ruby scripts dont preform on large logfiles
e.g. >= 50MB.

I had the same problem some time ago, so I wrote a c program for that.
The program uses a binarytree as main data structure and gives roughly the
following output:

        Bytes  Number   Folder
        -----  ------   ------
        13653      15   cronlog
        52311       9   linux/debian-curiosa
       108171      22   linux/debian-firewall
        21946       1   linux/debian-news
       125318      25   linux/debian-security
       542507     101   linux/linux-procmail
       284086       1   linux/vger-kernel-announce
        46496      15   linux/vger-kernel-c-programming
       169024      18   spam/spam-invalid-x-UIDL
        34344       7   spam/spam-maybe-forged
      -------  ------
      3394212     198
 
It works great on large procmail.logs especially over 100MB.

If anyone is interrested:
http://www.xs4all.nl/~winnetou/procstat.c


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>