Change syslog logrotate options


i want to change the logrotate configuration for syslog on /etc/logrotate.d/syslog. I tried different ways to do so, but without any luck:

  • Create an own service overwriting existing file
  • Use write_files in cloud config

The file is always overwritten at some point. Can you point me to the right direction?

I am running the rancher os on raspberry pi 3 and at some point to partition of the system gets filled up by the log files ( I could resize the partition, but this would mean, on every update a “shrink --> dd --> extend” is needed.
So I want to change the “daily” to “size 25MB”.