Logging statistics

Michael Storz Michael.Storz at lrz.de
Wed Mar 30 10:45:04 CEST 2011


On Wed, 30 Mar 2011, Patrick Ben Koetter wrote:

> Date: Wed, 30 Mar 2011 09:19:36 +0200
> From: Patrick Ben Koetter <p at state-of-mind.de>
> To: Amavis Users <amavis-users at amavis.org>
> Subject: Logging statistics
>
> Mark,
>
> most people I know run amavis with $log_level = 2, because it gives them
> valuable output on spam test scores. They feed this output to scripts and
> create statistics.
>
> However running amavis in that $log_level also creates a lot of unnecessary
> output - unless you debug.
>
> I think it would be useful to have a separate option that lets amavis run with
> normal, low $log_level, but creates output for statistical purposes. I am not
> sure though how it should be stored. Both, logfile and snmp.db, seem to be
> good places. I guess snmp.db would be the hard way. Anyway...
>
> Would you consider adding such a feature?
>
> p at rick
>
>
>

Hi Patrick,

we run with log_level = 0 and still get all the necessary data. We have
uncommented the line

#[? %#T ||, Tests: \[[%T|,]\]]#

for config variable $log_templ to get the tests and their score. I am
using this to check, if all my local tests are still working.

MfG,
Michael Storz
--
======================================================
Leibniz-Rechenzentrum      |    <mailto:Storz at lrz.de>
Boltzmannstr. 1            |    Fax: +49 89 35831-9700
85748 Garching / Germany   |    Tel: +49 89 35831-8840
======================================================


More information about the amavis-users mailing list