Skip to content

Commit

Permalink
update rsyslog log size conf (#15821) (#15837)
Browse files Browse the repository at this point in the history
  • Loading branch information
mssonicbld authored Jul 14, 2023
1 parent 826f5a1 commit 0b1f834
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/image_config/logrotate/rsyslog.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
{
{% if var_log_kb <= 204800 %}
size 1M
{% elif var_log_kb <= 409600 %}
size 2M
{% else %}
size 16M
{% endif %}
Expand All @@ -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 %}
Expand Down

0 comments on commit 0b1f834

Please sign in to comment.