If the default syslog size is modified, syslog (/var/log/messages) will sometimes freeze when the file size reaches 512KB. The issue seems to be a discrepancy between the rsyslog max file size and the configuration applied to the vyos log rotator.
set system logs logrotate messages max-size '10' set system logs logrotate messages rotate '10'
With this configuration I expect log files to grow to 10MB. However, they stop at 512KB and never rotate. /var/run/rsyslog/rsyslog.conf seems to not be modified correctly and contains a static limit of 512KB for /var/log/messages
...snip...
if prifilt("*.info,local7.debug") then {
action(
type="omfile"
file="/var/log/messages"
rotation.sizeLimit="524288" # 512Kib - maximum filesize before rotation
rotation.sizeLimitCommand="/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog"
)
}
...snip...To match my configuration, I changed rotation.sizeLimit = 10496000, restarted rsyslogd, and I've had no issues with logging since.