[Mimedefang] Re: MIMEDefang digest, Vol 1 #507 - 9 msgs

John Kirkland jpk at bl.org
Sat Jan 11 12:30:00 EST 2003


> Ok, I've added the following:
>
> #--------------------------------------------------------------
> %GraphSettings = ();
> %GraphSettings = (
>                 'data_types'    => ['user_unknown'],
>                 'graph_type'    => 'stacked_bar',
>                 'grouping'      => 'value1',
>                 'top_n'         => '9',
>                 'value1_title'  => 'Domain',
>                 'grouping_times'=> ['hourly','daily','monthly'],
>                 'filter'        => '/^.* (\<\S+\>)\.\.\. User unknown$/'
>                 );
> push @GRAPHS, { %GraphSettings };
>
> It seems to work, since in my first graph a new line has been added
> corresponding to "User unknown" sendmail logs.
> However, the new graph which is created is empty :(

You do not need to specify a filter for this graph.  The regular
expression is used in graphdefanglib.pl to extract data from your log
file.

> I'm not sure to understand what you mean, so please forgive me if my
> question is stupid; but do I need to add a new md_log function within my
> mimedefang-filter config file ?

No, you do not need a new md_log function.  The log line is put in the
file by sendmail, and graphdefang picks it directly from there.

Regards,
John Kirkland




More information about the MIMEDefang mailing list