Disk usage of Puppet reports

logginglogrotatepuppetpuppetmaster

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.