From 0b1f834e22585924837b52d3434d8db098794d7d Mon Sep 17 00:00:00 2001 From: mssonicbld <79238446+mssonicbld@users.noreply.github.com> Date: Fri, 14 Jul 2023 20:34:22 +0800 Subject: [PATCH] update rsyslog log size conf (#15821) (#15837) --- files/image_config/logrotate/rsyslog.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/image_config/logrotate/rsyslog.j2 b/files/image_config/logrotate/rsyslog.j2 index 25db65ac48..d2b94ca2eb 100644 --- a/files/image_config/logrotate/rsyslog.j2 +++ b/files/image_config/logrotate/rsyslog.j2 @@ -36,6 +36,8 @@ { {% if var_log_kb <= 204800 %} size 1M +{% elif var_log_kb <= 409600 %} + size 2M {% else %} size 16M {% endif %} @@ -52,6 +54,8 @@ # Adjust LOG_FILE_ROTATE_SIZE_KB to reflect the "size" parameter specified above, in kB {% if var_log_kb <= 204800 %} LOG_FILE_ROTATE_SIZE_KB=1024 +{% elif var_log_kb <= 409600 %} + LOG_FILE_ROTATE_SIZE_KB=2048 {% else %} LOG_FILE_ROTATE_SIZE_KB=16384 {% endif %}