2

Running rsyslogd -N 1, I receive two complains :

rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 27: parameter 'RebindInterval' not known -- typo in config file? [v8.27.0 try http://www.rsyslog.com/e/2207 ]

and a complain about last line :

rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 43: warnings occured in file '/etc/rsyslog.conf' around line 43 [v8.27.0 try http://www.rsyslog.com/e/2207 ]

rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 43: invalid character '(' - is there an invalid escape sequence somewhere? [v8.27.0 try http://www.rsyslog.com/e/2207 ]

rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 43: warnings occured in file '/etc/rsyslog.conf' around line 43 [v8.27.0 try http://www.rsyslog.com/e/2207 ]

rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 43: invalid character '=' - is there an invalid escape sequence somewhere? [v8.27.0 try http://www.rsyslog.com/e/2207 ]

rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 43: invalid character '"' - is there an invalid escape sequence somewhere? [v8.27.0 try http://www.rsyslog.com/e/2207 ]

The config is as follows rsyslog 8.28 on Ubuntu 16.04.

# /etc/rsyslog.conf Configuration file for rsyslog

module(load="imuxsock")

module(
    load="imklog"
    LogPath="/proc/kmsg"
    )

module(load="imudp")
input(
    type="imudp"
    port="514"
)

module(load="imtcp")
input(
    type="imtcp"
    port="514"
)

module(
    load="builtin:omfwd"
    # RebindInterval="5000" # ERROR shown by rsyslogd -N 1 : parameter 'RebindInterval' not known.
)

module(
    load="builtin:omfile"
    template="RSYSLOG_TraditionalFileFormat"
    fileOwner="syslog"
    fileGroup="syslog"
    fileCreateMode="0640"
    dirCreateMode="0755"
)

global(
    preserveFQDN="on"
    umask="0022"
)

include(file="/etc/rsyslog.d/*.conf")

2 Answers 2

4

A module has 2 sorts of parameters. Some are only to be used with the module() object, and some with the action() object referring to that module. Look back up from the definition of RebindInterval in the cited documentation and you will see it is under the heading Action Parameters, and not Module Parameters, so you can only use it with

action(type="omfwd" RebindInterval=...)

Also, include() is not available until version 8.33, so use the legacy

$IncludeConfig /etc/rsyslog.d/*.conf
0
1

I think the RebindInterbal is an action not part of the module load - so in the rsyslogd.conf the format should be:

module(load="builtin:omfwd")
action(type="omfwd" RebindInterval="5000")

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.