Logrotate track upstream logs
There is currently a single 3.6GB track_upstream.log logfile on review.o.o. It has data from March 2017 through to today (October 2017). Lets rotate this logfile and keep 30 days worth of logs to reduce its impact on the local filesystem. Change-Id: Id80ab28b3c7dc9881ac28f55fa07aa539a11787d
This commit is contained in:
parent
7049db5d8f
commit
f58a54c448
@ -489,6 +489,19 @@ class openstack_project::gerrit (
|
||||
],
|
||||
require => Exec['manage_projects'],
|
||||
}
|
||||
|
||||
logrotate::file { 'track_upstream.log':
|
||||
log => '/var/log/track_upstream.log',
|
||||
options => [
|
||||
'compress',
|
||||
'missingok',
|
||||
'rotate 30',
|
||||
'daily',
|
||||
'notifempty',
|
||||
'copytruncate',
|
||||
],
|
||||
require => Cron['track_upstream'],
|
||||
}
|
||||
}
|
||||
}
|
||||
file { '/home/gerrit2/review_site/bin/set_agreements.sh':
|
||||
|
Loading…
x
Reference in New Issue
Block a user