Hi,
I tried to find this parselog perl set (described in a mai in January) but
to no avail.
I am not too happy with mailgraph. I guess I am spoiled by amavis-stats.
However that doesn't work with pühp5 anymore, so I am looking for an
alternative.
Does anyone have those parselog scripts for amavis.log I am not a perl
programmer, so I am a bit stuck.
I'd really like to just integrate it in mrtg and found some scripts. The
parsing script wnats spamd logfiles though, so I thought it must be
possible to deliver the right numbers by parsing the amavis.log, but as I
said, I am not a perl programmer.
Has anyone gotten that to work with mrtg?
Thanks,
.peter
On Sat, 6 Jan 2007, Vincent Li wrote:
> 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/
> -------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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/