I’ve noticed when I configure syslog for more than 512KB, the logs have a habit of freezing. Sometimes restarting rsyslogd gets it working again, but most of the time I have to reboot.
I think I’ve tracked the issue to /var/run/rsyslog/rsyslog.conf With the larger file size configured in the system settings, rotation.sizeLimit remains 524288. Updating to match the file size I’ve configured in the syslog settings resolves the issue.
Would it be possible for you to file this as a bug over at https://vyos.dev/ and include any config (vyos and rsyslogd etc) to make it easier to reproduce this error (along with the fix you have found)?
Please see my comment on the vyos.dev issue. I think there is a larger issue at hand and the intent is not clear to me. There is definitely a bug here, at least operationally with the logs freezing, however, the intent of the CLI vs the config templates is not clear. The cli and config parsers were recently reorganized/rewritten. I’d suggest you have the author of those changes evaluate to make sure the intent and the code match.
Also, presuming any of my claims are correct, I’d suggest treating this like a serious bug. If the device doesn’t forward logging to a remote syslog server and hits the issues I did (which seems possible, I was hitting log freezes with the default config), then system logging is lost entirely which is very bad for a non-personal/test environment.
Sorry to bombard with comments about syslog, but it is feeling like something has gone horribly wrong with it.
Another example:
set system syslog local facility daemon
Possible completions:
level Logging level (default: err)
The CLI indicates that the default syslog level for the daemon facility (3) is err (3). However, the following log is being emitted to /var/log/messages: