Files
openstack-ansible-ops/elk_metrics_6x/templates/logrotate.j2
Kevin Carter 62b8c8b45d Add logrotate to the elasticstack
To ensure we're not creating too many logs files the logrotate config
has been added to truncate and compress log files every other day
with a max retention priod of 5 days.

Change-Id: I0dd85a334dba48e9fce3aad67ead867e2f46cb02
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-07-23 22:17:23 -05:00

13 lines
197 B
Django/Jinja

{{ elastic_log_rotate_path }}/*.log
{
copytruncate
weekly
missingok
rotate 2
compress
dateext
maxage 5
notifempty
nocreate
}