Logrotate the indexer.log logfile.
Over time this logfile can grow quite large filling disk. Rotate it daily and keep one week worth of logs to keep a reasonable amount of logs. Change-Id: Ic5f3acf290d3febc8af83773eb120df774937f1b
This commit is contained in:
parent
b12ff0223a
commit
79d4e6bbf6
|
@ -52,4 +52,18 @@ class logstash::indexer (
|
||||||
File['/etc/init/logstash-indexer.conf'],
|
File['/etc/init/logstash-indexer.conf'],
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include logrotate
|
||||||
|
logrotate::file { 'indexer.log':
|
||||||
|
log => '/var/log/logstash/indexer.log',
|
||||||
|
options => [
|
||||||
|
'compress',
|
||||||
|
'copytruncate',
|
||||||
|
'missingok',
|
||||||
|
'rotate 7',
|
||||||
|
'daily',
|
||||||
|
'notifempty',
|
||||||
|
],
|
||||||
|
require => Service['logstash-indexer'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"project_page": "http://ci.openstack.org/",
|
"project_page": "http://ci.openstack.org/",
|
||||||
"issues_url": "https://storyboard.openstack.org/#!/project/763",
|
"issues_url": "https://storyboard.openstack.org/#!/project/763",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{"name":"puppetlabs/apache","version_requirement":">= 0.0.3 <0.0.5"}
|
{"name":"puppetlabs/apache","version_requirement":">= 0.0.3 <0.0.5"},
|
||||||
|
{"name":"openstackinfra/logrotate"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue