Chef-server logrotate

Hi all

Seems like the chef-server does not put any configuration files into /etc/logrotate.d. Our logs were taking up several gigabytes.
Is this known and/or intentional?

I created the following in /etc/logrotate.d/chef-server: https://gist.github.com/Zhann/8804710

Guess it does the trick, but maybe there’s a more elegant way than just restarting the chef-server?

Kr,
S

Replaced the restart with a simple ‘copytruncate’
/facepalm

Still, am I correct that out of the box there’s no log rotation? And if so: is this intentional?

Kr,
S

On 04 Feb 2014, at 15:39, Steven De Coeyer steven@banteng.be wrote:

Hi all

Seems like the chef-server does not put any configuration files into /etc/logrotate.d. Our logs were taking up several gigabytes.
Is this known and/or intentional?

I created the following in /etc/logrotate.d/chef-server: Logrotate config for chef-server /etc/logrotate.d/chef-server · GitHub

Guess it does the trick, but maybe there’s a more elegant way than just restarting the chef-server?

Kr,
S