We are running puppet-dashboard on the puppetmaster which processes all the reports and puts them in a MySQL table. Every month about 5GB of reports are generated however in /var/lib/puppet/reports.
What is the best way to control disk usage for Puppet reports?
- Daily prune all reports older than 30 days with a cronjob.
- Using logrotate on older report files (.yaml), if possible.
I am sure there are many people that have Puppet logging many gigabytes every month. It seems too expensive to keep storing this data.
Best Answer
http://docs.puppetlabs.com/dashboard/manual/1.2/maintaining.html
See "Cleaning Old Reports"
Also: Could Puppet-reports be removed once these have been processed by Puppet-dashboard or PuppetDB?