Puppet dashboard spool is filled up with many report-****.yaml files

Hi All,

I have puppet instance . On server puppet dashboard server , millions of report-****-.yaml are present and they are not clearing up , but keep increasing every minutes.

As I understand, these files get cleared after processing automatically, but looks like there is some issue. Any help/suggestion to fix the issue, would be helpful.

Thanks
Sunil Sagar
sunilsagarAsked:
Who is Participating?
 
MazdajaiConnect With a Mentor Commented:
You can use puppet tidy's resource to clean up.

http://docs.puppetlabs.com/references/latest/type.html#tidy

case $hostname {
    /^puppet$/: {
        tidy { 'puppet::reports':
             path => '/var/spool/puppet',
             matches => '*',
             age => '7d',
             backup => false,
             recurse => true,
             rmdirs => true,
             type => 'ctime',
         }
         # notify { "debug: tidy command should run now": }
    }
}

Open in new window

0
 
gheistCommented:
It is the default behaviour of the default report plugin called "store"
0
 
sunilsagarAuthor Commented:
Thanks for the response gheist , is there any recommended way to clear / remove these files without breaking anything . These files are already eating 100 GB of disk-space .

Thanks
0
 
gheistCommented:
Just delete them, you are expected to place your plugin in place of store plugin that does something meaningful with logs.... Otherwise they are left rotting for eternity.

Something like this:
find /var/spool/puppet -type f -mtime +7 -name report-\*.yaml -print0 | xargs rm -f
0
 
Phil DavidsonCommented:
When was the last time this Puppet Master server was rebooted?  I think you need to stop and restart services.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.