Page MenuHomeVyOS Platform

syslog: convert old configuration format to "advanced"
Closed, ResolvedPublicFEATURE REQUEST

Description

We are still using the legacy config format for rsyslog in https://github.com/vyos/vyos-1x/blob/bb4611544ff73a979f927a7a1c8ea3dd1c56fb48/data/templates/rsyslog/rsyslog.conf.j2

It has been superseded by a new format:

https://www.rsyslog.com/doc/configuration/converting_to_new_format.html

There are some associated issues. For example, we use $markMessagePeriod for set system syslog global marker interval, which sends mark messages unconditionally. New rsyslog versions support sending mark messages only if there are no real messages, the old directive is now listed as obsolete (https://www.rsyslog.com/doc/configuration/input_directives/rsconf1_markmessageperiod.html) and its replacement seems to be only available in the advanced format.

  • Drop file CLI option to log to dedicated files.
  • Drop user CLI option to always log to user terminal - should be an op-mode command instead
  • Rename host <ipv4|ipv6|fqdn> -> remote <ipv4|ipv6|fqdn>
  • Add new source-address option for outgoing connections under remote source-address <ipv4|ipv6|fqdn>
  • VRF can be defined per remote as remote vrf <name>
  • Move global preserve-fqdn -> preserve-fqdn - move up one CLI level
  • Move global marker interval -> marker interval - move up one CLI level
  • Rename global -> local as every facility configured under global is actually logged locally to /var/log/messages

Details

Version
-
Is it a breaking change?
Config syntax change (migratable)
Issue type
Feature (new functionality)

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Backport to 1.5-stream-2025-Q2, after Q1 is released.

c-po moved this task from Open to Finished on the VyOS 1.5 Circinus board.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Config syntax change (migratable).