Merge "Rotate Jenkisn log client logs."
This commit is contained in:
commit
43e5193555
@ -95,4 +95,18 @@ class openstack_project::logstash (
|
||||
subscribe => File['/etc/logstash/jenkins-log-client.yaml'],
|
||||
require => File['/etc/init.d/jenkins-log-client'],
|
||||
}
|
||||
|
||||
include logrotate
|
||||
logrotate::file { 'log-client-debug.log':
|
||||
log => '/var/log/logstash/log-client-debug.log',
|
||||
options => [
|
||||
'compress',
|
||||
'copytruncate',
|
||||
'missingok',
|
||||
'rotate 7',
|
||||
'daily',
|
||||
'notifempty',
|
||||
],
|
||||
require => Service['jenkins-log-client'],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user