Chef Server Logs Maintenance


Chef Server : Logs /var disk space

How are the chef server logs maintained and cleared down

We basically have a Chef Server with no disk space on the /var as the Chef logs have grown.
If there a periodic process to clear / rotate these logs?
What size do people have /var set to for a production environment?

There is a page regarding logs :

If there are 10 logs and each can be 1 GB each is the minimum size for that directory 10 GB?

Can we just clear all the logs and restart?

many thanks



Set up a job in /etc/logrotate.d to define how often the logs should be rolled to a new file and how many files to keep. Several other options available, see documentation on logrotate.