Univention Bugzilla – Bug 56055
rsyslog: Config error while activating TCP reception
Last modified: 2023-10-26 14:43:21 CEST
root@primary991:~# ucr set syslog/input/tcp=10415 Setting syslog/input/tcp File: /etc/rsyslog.conf File: /etc/security/packetfilter.d/20_rsyslog.sh root@primary991:~# /etc/init.d/rsyslog restart [ ok ] Restarting rsyslog (via systemctl): rsyslog.service. root@primary991:~# This leads to the following error messages in syslog: May 11 13:49:11 primary991 rsyslogd: input module name 'imInputTCP' is unknown [v8.1901.0 try https://www.rsyslog.com/e/2209 ] May 11 13:49:11 primary991 rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 43: parameter 'port' not known -- typo in config file? [v8.1901.0 try https://www.rsyslog.com/e/2207 ] Fix: root@primary991:~# diff -Nur /etc/rsyslog.conf.old /etc/rsyslog.conf --- /etc/rsyslog.conf.old 2023-05-11 13:18:35.576000000 +0200 +++ /etc/rsyslog.conf 2023-05-11 13:51:32.036000000 +0200 @@ -40,7 +40,7 @@ # provides TCP syslog reception module(load="imtcp") -input(type="imInputTCP" port="10415") +input(type="imTCP" port="10415") # provides RELP syslog reception #module(load="imrelp") root@primary991:~#
Possible patch could look like this in the template file: root@ucs-logging:/etc/univention/templates/files/etc# diff -Nur rsyslog.conf.orig rsyslog.conf --- rsyslog.conf.orig 2023-08-19 06:27:41.658524868 +0200 +++ rsyslog.conf 2023-08-19 06:30:29.472823402 +0200 @@ -30,7 +30,7 @@ @!@ from os.path import exists -for (typ, cfg) in [('udp', 'UDP'), ('tcp', 'InputTCP'), ('relp', 'InputRELP')]: +for (typ, cfg) in [('udp', 'UDP'), ('tcp', 'TCP'), ('relp', 'RELP')]: print('# provides %s syslog reception' % (typ.upper(),)) mod = '/usr/lib/x86_64-linux-gnu/rsyslog/im%s.so' % (typ,) port = configRegistry.get('syslog/input/%s' % (typ,)) See for RELP: https://www.rsyslog.com/doc/v8-stable/configuration/modules/imrelp.html See for TCP: https://www.rsyslog.com/doc/v8-stable/configuration/modules/imtcp.html
The instructions described in the forum are currently not working because of this bug https://help.univention.com/t/setup-central-syslog-server/6586
UCS 4.2 updates rsyslog from v5 to v8: https://univention-dist-binpkg-webgui.k8s.knut.univention.de/source/rsyslog/ The incompatible changes was introduced with rsyslog v6: https://rsyslog.readthedocs.io/en/latest/compatibility/v6compatibility.html#plugin-abi See MR for review comments.