[exim] eximstats features

Top Page
Delete this message
Reply to this message
Author: David
Date:  
To: exim-users
Subject: [exim] eximstats features
I have two quick feature requests for eximstats. Has anybody written support
for XML output from eximstats? Normally I don't like XML but I can see a
very valid case for it here, as output could be converted to many other
formats (txt, pdf, xhtml) quite easily using XSLT. If nobody else has
written this I could most likely attempt it, time allowing, as it doesn't
seem too difficult to do.

The second feature that would be nice would be to extend the -pattern switch.
If eximstats could count the number of different values that are part of a
regex group, it would be very useful for my logs. An example follows.

My log line contains:

2005-08-20 17:21:52 .. rejected RCPT ..: [DNSBL] dnsbl/bl.spamcop.net

The custom message shows that it was rejected by bl.spamcop.net. I can get
eximstats to show the number of rejected messages using:

# eximstats -pattern 'Rejected due to DNS lists' '/\[DNSBL\]/

However, it would be nice if I could count how many were rejected because of
each list, e.g.:

# eximstats -pattern 'Rejected due to DNS lists' '/\[DNSBL\]
dnsbl\/([a-zA-Z\.])/'

(Obviously not the best regex for the job, if indeed it would even work)

eximstats could then output:

Rejected due to DNS lists
-------------------------

    101   bl.spamcop.net
     14    spammy.example.com


I feel this could extend the usefulness of eximstats for me quite extensively.
I don't know how well it would work with the -merge option, indeed I don't
even know if -pattern output works with -merge (but I assume that would be
trivial to code and therefore does work).

Does anybody have any thoughts on whether this could be useful or worthwhile?

David