# Change syslog logrotate options

**URL:** <https://forums.suse.com/t/change-syslog-logrotate-options/10226>\
**Category:** RancherOS\
**Created:** [April 30, 2018, 1:37pm UTC](https://forums.suse.com/t/change-syslog-logrotate-options/10226 "2018-04-30T13:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mapero](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mapero/32/3971_2.png) [@mapero](https://forums.suse.com/u/mapero)\
**Post date:** [April 30, 2018, 1:37pm UTC](https://forums.suse.com/t/change-syslog-logrotate-options/10226/1 "2018-04-30T13:37:57Z")

</div>

Hi,

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?

Reason:  
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 ([https://github.com/rancher/os/issues/2239](https://github.com/rancher/os/issues/2239)). 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”.

Thanks.
