$RepeatedMsgReduction is off by default so you don't need to set it explicitly.
$CreateDirs is also on by default and it has its equivalent in omfile
parameters.
$umask can be set externally per rsyslogd process.
On 04.07.2022 18:42, John Chivian via rsyslog wrote:
I don’t believe that all of the legacy configuration have new equivalents.
Note below that in my file of global definitions I have both styles, the reason
being when I put it together I couldn’t find newer equivalents. They may have
since been implemented, the maintainers will know for sure.
This is the ONLY case where I use the old style syntax, i.e. this small section
of global definitions, everything else is written utilizing the new script
constructions. To my way of thinking, if this is the only part of the old
style syntax I have to deal with, then I can live with it just fine.
$ cat 01-globals.conf
# Old Style Globals
$RepeatedMsgReduction off
$umask 0000
$CreateDirs on
# New Style Globals
global(
processInternalMessages="on"
parser.dropTrailingLFOnReception="on"
parser.spaceLFOnReceive="on"
parser.escapeControlCharactersOnReceive="on"
maxMessageSize="16k"
preserveFQDN="on"
net.enableDNS="off"
workDirectory="/logspool"
senders.keepTrack="on"
senders.timeoutAfter="86400"
senders.reportGoneAway="on"
senders.reportNew="on"
oversizemsg.errorfile="/logspool/oversizemsg.errorfile"
oversizemsg.input.mode="truncate"
oversizemsg.report="on"
)
Regards,
On Jul 4, 2022, at 02:52, Ede Wolf via rsyslog <rsyslog@lists.adiscon.com>
wrote:
Hello,
I am trying to convert an legacy configuration file to rscript, and I am unable
to find a list for the global options. For example changing:
$ModLoad immark.so
$MarkMessagePeriod 3600
into
module(load="immark.so" MarkMessagePeriod="3600")
or
$ModLoad imklog.so
$klogConsoleLogLevel
into
module(load="imklog.so" klogConsoleLogLevel="1")
Those options (klogConsoleLogLevel or MarkMessageperiod) seem to have been
renamed.
However, the Libraray Modules Documentation Website does not list any modules,
and f.e. the $MarkMessagePeriod site does not link to an rscript equivalent at
all.
So I am wondering, is there somewhere an overview of old vs. new options?
Also for other global settings like converting $Umask, $InclideConfig or
$FileOwener?
Thanks
Ede
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.