Merge #2606
2606: Modify the healtchecks to make them disapear from the logs. r=nextgens a=nextgens ## What type of PR? enhancement ## What does this PR do? Modify the healtchecks to make them disapear from the logs. This is not perfect... - dovecot now complains about waitpid/finding a new process - postfix is still regularly pinging rspamd / his milter and that generates a few lines worth of logs each time. ### Related issue(s) ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [ ] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>main
commit
3ffe1d2a9e
@ -1,41 +1,43 @@
|
|||||||
# rsyslog configuration file
|
# rsyslog configuration file
|
||||||
#
|
#
|
||||||
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
|
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
|
||||||
# or latest version online at http://www.rsyslog.com/doc/rsyslog_conf.html
|
# or latest version online at http://www.rsyslog.com/doc/rsyslog_conf.html
|
||||||
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
|
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
|
||||||
|
|
||||||
|
|
||||||
#### Global directives ####
|
#### Global directives ####
|
||||||
|
|
||||||
# Sets the directory that rsyslog uses for work files.
|
# Sets the directory that rsyslog uses for work files.
|
||||||
$WorkDirectory /var/lib/rsyslog
|
$WorkDirectory /var/lib/rsyslog
|
||||||
|
|
||||||
# Sets default permissions for all log files.
|
# Sets default permissions for all log files.
|
||||||
$FileOwner root
|
$FileOwner root
|
||||||
$FileGroup adm
|
$FileGroup adm
|
||||||
$FileCreateMode 0640
|
$FileCreateMode 0640
|
||||||
$DirCreateMode 0755
|
$DirCreateMode 0755
|
||||||
$Umask 0022
|
$Umask 0022
|
||||||
|
|
||||||
# Reduce repeating messages (default off).
|
# Reduce repeating messages (default off).
|
||||||
$RepeatedMsgReduction on
|
$RepeatedMsgReduction on
|
||||||
|
|
||||||
|
|
||||||
#### Modules ####
|
#### Modules ####
|
||||||
|
|
||||||
# Provides support for local system logging (e.g. via logger command).
|
# Provides support for local system logging (e.g. via logger command).
|
||||||
module(load="imuxsock")
|
module(load="imuxsock")
|
||||||
|
|
||||||
#### Rules ####
|
#### Rules ####
|
||||||
|
|
||||||
# Discard messages from local test requests
|
# Discard messages from local test requests
|
||||||
:msg, contains, "connect from localhost[127.0.0.1]" ~
|
:msg, contains, "connect from localhost[127.0.0.1]" ~
|
||||||
:msg, contains, "connect from localhost[::1]" ~
|
:msg, contains, "connect from localhost[::1]" ~
|
||||||
|
:msg, contains, "haproxy read: short protocol header: QUIT" ~
|
||||||
{% if POSTFIX_LOG_FILE %}
|
:msg, contains, "discarding EHLO keywords: PIPELINING" ~
|
||||||
# Log mail logs to file
|
|
||||||
mail.* -{{POSTFIX_LOG_FILE}}
|
{% if POSTFIX_LOG_FILE %}
|
||||||
{% endif %}
|
# Log mail logs to file
|
||||||
|
mail.* -{{POSTFIX_LOG_FILE}}
|
||||||
# Log mail logs to stdout
|
{% endif %}
|
||||||
mail.* -/dev/stdout
|
|
||||||
|
# Log mail logs to stdout
|
||||||
|
mail.* -/dev/stdout
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
Modify the healtchecks to make them disapear from the logs.
|
Loading…
Reference in New Issue