From 3c96804a87f67f43e9f3c97a0b377485093652fd Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 18 Sep 2018 13:20:27 -0500 Subject: [PATCH] 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 --- .../roles/elastic_dependencies/templates/logrotate.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elk_metrics_6x/roles/elastic_dependencies/templates/logrotate.j2 b/elk_metrics_6x/roles/elastic_dependencies/templates/logrotate.j2 index 5915449a..d868cf28 100644 --- a/elk_metrics_6x/roles/elastic_dependencies/templates/logrotate.j2 +++ b/elk_metrics_6x/roles/elastic_dependencies/templates/logrotate.j2 @@ -1,12 +1,12 @@ {{ elastic_log_rotate_path }}/*.log { copytruncate - weekly - missingok + daily rotate 2 + delaycompress compress dateext - maxage 5 notifempty - nocreate + missingok + maxage 5 }