update rsyslog log size conf (#15821) (#15837)

This commit is contained in:
mssonicbld 2023-07-14 20:34:22 +08:00 committed by GitHub
parent 826f5a1d45
commit 0b1f834e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}