Page MenuHomeVyOS Platform

syslog: file archive size rendered as 0k in logrotate config
Closed, ResolvedPublicBUG

Description

vyos@vyos# set system syslog file myfile archive size 
Possible completions:
   <text>               Size of log files in kbytes (default: 256)

The value is processed by this code:

size={{ file_options.archive.size | int // 1024 }}k

Resulting config:

vyos@vyos# cat /etc/logrotate.d/vyos-rsyslog-user
### Autogenerated by system_syslog.py ###
/var/log/user/myfile {
  missingok
  notifempty
  create
  rotate 5
  size=0k
}

Details

Version
1.4.4
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)