Right now i have this in my rsyslog.conf
file.
/* GLOBAL DIRECTIVES */
# Global umask for all actions
$umask 0022
# Set the default permissions for all log files.
module(load="buildin:omfile"
# To enable high precision timestamps, use the following line:
# template="RSYSLOG_FileFormat"
template="RSYSLOG_TraditionalFileFormat"
# Set the default permissions for all log files.
dirCreateMode="0700"
dirOwner="syslog"
dirGroup="adm"
fileCreateMode="0640"
fileOwner="syslog"
fileGroup="adm"
)
$PrivDropToUser syslog
$PrivDropToGroup syslog
global(workDirectory="/var/spool/rsyslog")
/* INCLUDED FILES */
# Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf
This appears to be "latest" stable way of configuring rsyslog
as per v8-stable docs
But this is still using old type of directives e.g $IncludeConfig
shouldn't that be global(includeConfig="/etc/rsyslog.d/*")
?
And so overall shouldn't my config look like this?
global(unmask=0022
privDropToUser="syslog"
privDropToGroup="syslog"
workDirectory="/var/spool/rsyslog"
includeConfig="/etc/rsyslog.d/*")
# Set the default permissions for all log files.
module(load="buildin:omfile"
# To enable high precision timestamps, use the following line:
# template="RSYSLOG_FileFormat"
template="RSYSLOG_TraditionalFileFormat"
# Set the default permissions for all log files.
dirCreateMode="0700"
dirOwner="syslog"
dirGroup="adm"
fileCreateMode="0640"
fileOwner="syslog"
fileGroup="adm"
)
any extra reading materials specifically for RainerScript will be much appreciated. So far looked found this resources (apart from docs):