From a7a7d3bd1c4e5f4cd88a57a183229e185a07c730 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 17 Sep 2018 11:57:22 +0530 Subject: logrotate: utilize the new 'maxsize' option Since logrotate 3.8.x version, a new option 'maxsize' is supported, which helps in rotating the logs before the specified time if the size exceeds maxsize limit. This should help in reducing the overflow of gluster logs. Updates: bz#1193929 Change-Id: Id33c34d72f1931e7996893de9338db667e1e900d Signed-off-by: Amar Tumballi --- extras/glusterfs-logrotate | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'extras/glusterfs-logrotate') diff --git a/extras/glusterfs-logrotate b/extras/glusterfs-logrotate index 575c0eee771..75f700e6459 100644 --- a/extras/glusterfs-logrotate +++ b/extras/glusterfs-logrotate @@ -2,7 +2,12 @@ /var/log/glusterfs/*.log { sharedscripts weekly - rotate 52 + maxsize 10M + minsize 100k + +# 6 months of logs are good enough + rotate 26 + missingok compress delaycompress @@ -17,7 +22,12 @@ /var/log/glusterfs/bricks/*.log { sharedscripts weekly - rotate 52 + maxsize 10M + minsize 100k + +# 6 months of logs are good enough + rotate 26 + missingok compress delaycompress -- cgit