Reports in Foreman

Hi all,

where save foreman the reports? In Postgresql or in a directory like Puppetserver it do ?

Thanks in advance


It’s Postgresql, the SQL table called reports

1 Like

thank you so much @Marek_Hulan , in Puppetserver I had a cronjob which weekly remove old reports, so I dont need that with foreman…

Just to add a bit more info:

The reports table gets cleaned up automatically thanks to the foreman-rake reports:expire triggered by the cron, see /etc/cron.d/foreman for the configuration. By default, we keep reports for a week but the cronjob config can be tweaked and custom number of days can be set. One would just change it to /usr/sbin/foreman-rake reports:expire days=14

1 Like

very useful informations :slight_smile: so I dont need my reports cronjob.

Just to let you know this will likely change in 3.2 release, it will be still stored in SQL but in a different (more efficient) way.

1 Like

That’s good news :slight_smile:

Thank you @lzap

1 Like