Skip to content

Commit 0b1f834

Browse files
authored
update rsyslog log size conf (#15821) (#15837)
1 parent 826f5a1 commit 0b1f834

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files/image_config/logrotate/rsyslog.j2

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
{
3737
{% if var_log_kb <= 204800 %}
3838
size 1M
39+
{% elif var_log_kb <= 409600 %}
40+
size 2M
3941
{% else %}
4042
size 16M
4143
{% endif %}
@@ -52,6 +54,8 @@
5254
# Adjust LOG_FILE_ROTATE_SIZE_KB to reflect the "size" parameter specified above, in kB
5355
{% if var_log_kb <= 204800 %}
5456
LOG_FILE_ROTATE_SIZE_KB=1024
57+
{% elif var_log_kb <= 409600 %}
58+
LOG_FILE_ROTATE_SIZE_KB=2048
5559
{% else %}
5660
LOG_FILE_ROTATE_SIZE_KB=16384
5761
{% endif %}

0 commit comments

Comments
 (0)