diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2021-07-08 08:15:45 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2021-07-08 06:00:10 -0300 |
commit | f89daf38a0d74524f8b4e214147be8965c64126d (patch) | |
tree | ea75104ca2bc4e34535c10c7f0dbb9b9b4cc31fb /main/rsyslog/rsyslog.conf | |
parent | c338d5b2cfa080d24cd7a8497554ce561d1f8fd8 (diff) |
main/rsyslog: load custom config before standard rules
We must include config files before the standard rules or else
the standard logs will be full with data the user have configured
filters for.
This problem was introduced in:
5364bae363 main/rsyslog: move config loading behind module loading to allow module directives in config files
Diffstat (limited to 'main/rsyslog/rsyslog.conf')
-rw-r--r-- | main/rsyslog/rsyslog.conf | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/main/rsyslog/rsyslog.conf b/main/rsyslog/rsyslog.conf index 8319b99a974..a279fdd09ae 100644 --- a/main/rsyslog/rsyslog.conf +++ b/main/rsyslog/rsyslog.conf @@ -35,6 +35,10 @@ module(load="imuxsock") # Reads kernel messages. module(load="imklog") +#### Config files #### + +# Include all config files in /etc/rsyslog.d/. +include(file="/etc/rsyslog.d/*.conf" mode="optional") #### Rules #### @@ -63,12 +67,6 @@ cron.* -/var/log/cron.log #kern.* /dev/console -#### Config files #### - -# Include all config files in /etc/rsyslog.d/. -include(file="/etc/rsyslog.d/*.conf" mode="optional") - - ### Examples #### # Send all logs to remote syslog via UDP. |