sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
222 stars 280 forks source link

Add support for log rotate on Windows #580

Open evandervecht opened 6 years ago

evandervecht commented 6 years ago

As of Sensu-client 0.29.5 it is possible to have the client.log being rotated every xxMB, however, this cookbook does not support this feature yet.

Older versions (tested on 0.22.x) have issues starting the service if the client.log is larger than ~150 MB. The latest version 1.0.2 does not have this issue however having large log files is ofcourse killing disk space.

Reference to Puppet's fix: https://github.com/sensu/sensu-puppet/pull/621/files/b87c2764d2168274e1b630c74e726846f49d6a55

Reference to Sensu issue: https://github.com/sensu/sensu-omnibus/issues/165

Your Environment

Version of Sensu used: 1.0.2
Version of Chef used: 12.19.36
Operating System and version: Windows Server 2012 R2 / 2016 
evandervecht commented 6 years ago

https://github.com/sensu/sensu-chef/pull/581