浏览代码

[Dovecot] Ignore watchdog IP in logs, filter by syslog-ng

andryyy 8 年之前
父节点
当前提交
7c46d6548b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      data/Dockerfiles/dovecot/syslog-ng.conf

+ 2 - 1
data/Dockerfiles/dovecot/syslog-ng.conf

@@ -39,12 +39,13 @@ destination d_redis_cleanup {
   );
   );
 };
 };
 filter f_mail { facility(mail); };
 filter f_mail { facility(mail); };
+filter f_not_watchdog { not message("172\.22\.1\.248"); };
 log {
 log {
   source(s_src);
   source(s_src);
+  filter(f_not_watchdog);
   destination(d_stdout);
   destination(d_stdout);
   filter(f_mail);
   filter(f_mail);
   destination(d_redis_ui_log);
   destination(d_redis_ui_log);
   destination(d_redis_f2b_channel);
   destination(d_redis_f2b_channel);
   destination(d_redis_cleanup);
   destination(d_redis_cleanup);
-
 };
 };