Merge "maas-syslog fix: eliminate duplicate messages"
This commit is contained in:
commit
036043a175
|
@ -3,15 +3,9 @@ $ModLoad imudp
|
||||||
$UDPServerRun {{ tuple "maas_region" "podport" "region_syslog" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
$UDPServerRun {{ tuple "maas_region" "podport" "region_syslog" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
#$ModLoad imtcp # load TCP listener
|
#$ModLoad imtcp # load TCP listener
|
||||||
|
|
||||||
# Reduce message repetition
|
# Discard messages from localhost
|
||||||
$RepeatedMsgReduction on
|
:fromhost-ip, isequal, "127.0.0.1" ~
|
||||||
|
|
||||||
# Overwrite default when log_level is set
|
# Log remote messages, based on the configured log level
|
||||||
{{- if .Values.conf.syslog.log_level }}
|
*.{{ .Values.conf.syslog.log_level | default "*" }} {{ .Values.conf.syslog.logpath }}/{{ .Values.conf.syslog.logfile }}
|
||||||
*.{{ .Values.conf.syslog.log_level }} {{ .Values.conf.syslog.logpath }}/{{ .Values.conf.syslog.logfile }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
##$RepeatedMsgContainsOriginalMsg on
|
|
||||||
|
|
||||||
:fromhost-ip, !isequal, "127.0.0.1" {{ .Values.conf.syslog.logpath }}/{{ .Values.conf.syslog.logfile }}
|
|
||||||
& ~
|
& ~
|
||||||
|
|
Loading…
Reference in New Issue