Re: [Openstack-operators] [Nova][icehouse]Any way to rotating log by size

2016-10-19 Thread Matt Fischer
On Wed, Oct 19, 2016 at 10:22 AM, Sean M. Collins wrote: > Zhang, Peng wrote: > > [logger_root] > > level = DEBUG > > > So, you're setting the logging to level to DEBUG - if I understand > correctly. In a production environment that is going to fill up your > disks very

Re: [Openstack-operators] [Nova][icehouse]Any way to rotating log by size

2016-10-19 Thread Sean M. Collins
Zhang, Peng wrote: > [logger_root] > level = DEBUG So, you're setting the logging to level to DEBUG - if I understand correctly. In a production environment that is going to fill up your disks very quickly. Which is why even running cron hourly to rotate the files still results in a full disk.

Re: [Openstack-operators] [Nova][icehouse]Any way to rotating log by size

2016-10-13 Thread Zhang, Peng
[Nova][icehouse]Any way to rotating log by size Add size: 100mb to your logrotate.conf It will only logrotate after the size is greater than that size. Sent from my iPad On Oct 13, 2016, at 6:03 PM, Zhang, Peng <zhang.p...@jp.fujitsu.com> wrote: Hi guys,   Our disk of Nova controller has

Re: [Openstack-operators] [Nova][icehouse]Any way to rotating log by size

2016-10-13 Thread Kris G. Lindgren
Add size: 100mb to your logrotate.conf It will only logrotate after the size is greater than that size. Sent from my iPad On Oct 13, 2016, at 6:03 PM, Zhang, Peng > wrote: Hi guys, Our disk of Nova controller has been filled with log

[Openstack-operators] [Nova][icehouse]Any way to rotating log by size

2016-10-13 Thread Zhang, Peng
Hi guys, Our disk of Nova controller has been filled with log files several times and it causes the node down. Although log rotation of Operation system is working fine to make rotation every hour, it is not efficient. Has anyone got any idea to rotate log files by size (e.g. 100MB) ? It costs