diff --git a/charts/maas/templates/etc/_rsyslog.conf.tpl b/charts/maas/templates/etc/_rsyslog.conf.tpl index 6affd3b..37bd367 100644 --- a/charts/maas/templates/etc/_rsyslog.conf.tpl +++ b/charts/maas/templates/etc/_rsyslog.conf.tpl @@ -5,6 +5,12 @@ $UDPServerRun {{ tuple "maas_region" "podport" "region_syslog" . | include "helm # Reduce message repetition $RepeatedMsgReduction on + +# Overwrite default when log_level is set +{{- if .Values.conf.syslog.log_level }} +*.{{ .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 }} diff --git a/charts/maas/values.yaml b/charts/maas/values.yaml index 995875d..4ab4c3d 100644 --- a/charts/maas/values.yaml +++ b/charts/maas/values.yaml @@ -195,6 +195,9 @@ conf: rotate: '30' # Size threshold when a log should rotate size: '100M' + # levels (emerg,alert,crit,error,warning,notice,info,debug) + # use 'info' as default when overwritting the default + log_level: 'info' maas: override: append: