Gerrit 3.10 comes with a log.timeToKeep setting to delete old log files. We currently rely on an home made systemd timer:
class gerrit::jobs { systemd::timer::job { 'clear_gerrit_logs': ensure => present, user => 'root', description => 'Gerrit rotates their own logs, but does not clean them out. Delete old logs.', command => "/usr/bin/find /var/log/gerrit/ -name \"*.gz\" -mtime +30 -delete", interval => {'start' => 'OnCalendar', 'interval' => 'daily'}, } }
Once upgraded, we can drop the timed find in favor of having Gerrit to do the rotation.
