The vyos configuration for syslog remote hosts can generate two typos in the rsyslog.conf file which prevent rsyslogd from running.
- If "format octet-counted" is specified, it results in the typo below:
The generated /run/rsyslog/rsyslog.conf file is given the following line:
Current (with typo): TCP_Framing="octed-counted" Correct (typo fixed): TCP_Framing="octet-counted" ^ typo
https://github.com/vyos/vyos-1x/blob/3fee8ec30dce8f3987fe468d29109ed4e1bc492a/data/templates/rsyslog/rsyslog.conf.j2#L108
https://github.com/vyos/vyos-1x/blob/3fee8ec30dce8f3987fe468d29109ed4e1bc492a/smoketest/scripts/cli/test_system_syslog.py#L229
- If "format include-timezone" is specified, it results in the typo below:
The generated /run/rsyslog/rsyslog.conf file is given the following line:
Current (with typo): template="SyslogProtocol23Format" Correct (typo fixed): template="RSYSLOG_SyslogProtocol23Format" ^ missing RSYSLOG_ prefix
https://github.com/vyos/vyos-1x/blob/3fee8ec30dce8f3987fe468d29109ed4e1bc492a/data/templates/rsyslog/rsyslog.conf.j2#L106
https://github.com/vyos/vyos-1x/blob/3fee8ec30dce8f3987fe468d29109ed4e1bc492a/smoketest/scripts/cli/test_system_syslog.py#L226
Vyos documentation:
https://docs.vyos.io/en/latest/configuration/system/syslog.html#remote-host
Upstream rsyslog documentation:
https://rsyslog.readthedocs.io/en/latest/configuration/modules/omfwd.html
https://www.rsyslog.com/doc/configuration/templates.html#reserved-template-names