Log management for the Chef 11 Omnibus installation


#1

Hello,

I’ve just set up a Chef 11 server on Redhat ES6 Server using the Omnibus
installation method. I did it by downloading the rpm and using that to do
the install.

Is there a good guide for setting up logrotate or something similar I can
use to rotate logs and ship them to our central logging server? For example
the access.log for nginx doesn’t appear to be set up to rotate at all.
We’re an apache shop and have used httplog for years to get apache to write
it’s files in a dated format so we could move them off without ever having
to stop apache.

I’m also not familiar with some of the other components of chef to know
what and how I should rotate it. For example /var/log/chef-server/chef-solr
already has 2MB of logs in it. We’re running chef on a VM with a 4GB /var
partition.


#2

Ohai,

On Feb 24, 2013, at 8:06 AM, Joseph Bowman bowman.joseph@gmail.com wrote:

Is there a good guide for setting up logrotate or something similar I can use to rotate logs and ship them to our central logging server? For example the access.log for nginx doesn’t appear to be set up to rotate at all. We’re an apache shop and have used httplog for years to get apache to write it’s files in a dated format so we could move them off without ever having to stop apache.

I’m also not familiar with some of the other components of chef to know what and how I should rotate it. For example /var/log/chef-server/chef-solr already has 2MB of logs in it. We’re running chef on a VM with a 4GB /var partition.

Using the omnibus package, the services in Chef 11 Server are managed by runit, and they log through svlogd0.


Joshua Timberman
Technical Community Manager, Opscode, Inc
IRC, Skype, Twitter, Github: jtimberman


#3

Thanks for the pointer

On Mon, Feb 25, 2013 at 1:19 PM, Joshua Timberman joshua@opscode.comwrote:

Ohai,

On Feb 24, 2013, at 8:06 AM, Joseph Bowman bowman.joseph@gmail.com
wrote:

Is there a good guide for setting up logrotate or something similar I
can use to rotate logs and ship them to our central logging server? For
example the access.log for nginx doesn’t appear to be set up to rotate at
all. We’re an apache shop and have used httplog for years to get apache to
write it’s files in a dated format so we could move them off without ever
having to stop apache.

I’m also not familiar with some of the other components of chef to know
what and how I should rotate it. For example /var/log/chef-server/chef-solr
already has 2MB of logs in it. We’re running chef on a VM with a 4GB /var
partition.

Using the omnibus package, the services in Chef 11 Server are managed by
runit, and they log through svlogd0.


Joshua Timberman
Technical Community Manager, Opscode, Inc
IRC, Skype, Twitter, Github: jtimberman