openstack-ansible-ops/elk_metrics_6x/roles/elastic_dependencies/templates/logrotate.j2
Kevin Carter 3c96804a87
Tune-up logrotate config
The log rotate configuration was leaving too many logs in place and
allowing them to grow too large. This tunes up the logrotation process
to ensure we're retaining information but not excessively.

Change-Id: If0f02352ee2c274f4c589b05630d28126ceba2ab
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-09-18 13:20:27 -05:00

13 lines
201 B
Django/Jinja

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