On Sat, 6 Jan 2007, Matt Herzog wrote:
> Hi All.
>
> I'm really pleased with amavis-new but a new requirement has popped up:
> getting stats. I have failed to get parselog to work for me and I'm not
> a Perl programmer so I'm wondering if anyone has a working script that
> can gather stats on Postfix, pyzor, razor, ClamAV and friends.
>
I tried parselog on my amavisd-new-2.3.3 log, made a trivial change on
the parselog-0.09/lib/Log/Parse.pm to match the amaivsd-new 2.3.3 log
line. it works.
--- /usr/src/parselog-0.09/lib/Log/Parse.pm 2005-07-07 06:52:49.000000000
-0700
+++ /usr/lib/perl5/site_perl/5.8.5/Log/Parse.pm 2007-01-06 13:04:33.522227136
-0800
- if ($args{line} !~ m/(.*?) amavis.*?\[.*?\]: (.*?), <.*?> ->
<.*?@(.*?)>,/) {
+ if ($args{line} !~ m/(.*?) amavis.*?\[.*?\]: (.*?) <.*?> ->
<.*?@(.*?)>,/) {
return;
}
Your amavis log line pattern may vary, just slightly change the
relevant amavis regex match pattern in Parse.pm should work
Vincent Li
http://bl0g.blogdns.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/