Ruleset¶
Default: default ruleset
Type: string
Description:
Binds all kernel log messages read by imklog to the named
ruleset. imklog has no input()
objects, so this module-level parameter is the only way to select a ruleset
for kernel messages. If it is not set, or the ruleset does not exist (an
error is logged in that case), messages go to the default ruleset.
Example:
module(load="imklog" ruleset="kernel_debug")
ruleset(name="kernel_debug") {
action(type="omfile" file="/var/log/kernel.log")
}
Messages that reach rsyslog through other inputs, such as kernel messages
forwarded by systemd-journald to imuxsock, are not affected by this
parameter; bind those inputs separately.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.