[patch] macro report_json_filtered
Markus Benning
ich at markusbenning.de
Thu Dec 4 15:30:04 CET 2014
Hello,
the attached patch adds a log macro report_json_filtered to amavisd.
This macro is like report_json but will remove all specified fields from
the output.
Example:
$logline_maxlen = ( 32*1024 ) - 50; # 32k max message size, keep 50 bytes for syslog
$log_templ = <<'EOD';
[:report_json_filtered|@timestamp|subject|subject_rot13|time_iso_week_date|time_unix|digest_body|type|user_agent|partition|originating]
EOD
It may be usefull for filtering unused fields to save diskspace and to
avoid logging of message content (subject, user_agent).
Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amavisd-report_json_filtered.patch
Type: text/x-diff
Size: 825 bytes
Desc: not available
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20141204/5fc57dc9/attachment.patch>
More information about the amavis-users
mailing list