# Chef-server logrotate

**URL:** <https://discourse.chef.io/t/chef-server-logrotate/5041>\
**Category:** Chef Infra (archive)\
**Created:** [February 4, 2014, 2:39pm UTC](https://discourse.chef.io/t/chef-server-logrotate/5041 "2014-02-04T14:39:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_De\_Coeyer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steven_de_coeyer/32/328_2.png) [@Steven\_De\_Coeyer](https://discourse.chef.io/u/Steven_De_Coeyer)\
**Post date:** [February 4, 2014, 2:39pm UTC](https://discourse.chef.io/t/chef-server-logrotate/5041/1 "2014-02-04T14:39:49Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![Steven\_De\_Coeyer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steven_de_coeyer/32/328_2.png) [@Steven\_De\_Coeyer](https://discourse.chef.io/u/Steven_De_Coeyer)\
**Post date:** [February 4, 2014, 2:51pm UTC](https://discourse.chef.io/t/chef-server-logrotate/5041/2 "2014-02-04T14:51:15Z")

</div>

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](mailto: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](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
