From aa08fe2e881191fecee749d8736aae983715f036 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 20 Jan 2025 21:02:22 +0100 Subject: [PATCH] syslog: T6989: increase local log size form 256KiB -> 1MiB --- data/templates/rsyslog/rsyslog.conf.j2 | 3 +-- smoketest/scripts/cli/test_system_syslog.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2 index 45742b073a..c6eb6430c6 100644 --- a/data/templates/rsyslog/rsyslog.conf.j2 +++ b/data/templates/rsyslog/rsyslog.conf.j2 @@ -64,7 +64,7 @@ if prifilt("{{ tmp | join(',') }}") then { action( type="omfile" file="/var/log/messages" - queue.size="262144" + rotation.sizeLimit="524288" # 512Kib - maximum filesize before rotation rotation.sizeLimitCommand="/usr/sbin/logrotate {{ logrotate }}" ) } @@ -120,4 +120,3 @@ if prifilt("{{ tmp | join(',') }}") then { # Include all configuration files in /etc/rsyslog.d/ include(file="/etc/rsyslog.d/*.conf") - diff --git a/smoketest/scripts/cli/test_system_syslog.py b/smoketest/scripts/cli/test_system_syslog.py index f19ba48f1d..e5464af708 100755 --- a/smoketest/scripts/cli/test_system_syslog.py +++ b/smoketest/scripts/cli/test_system_syslog.py @@ -118,7 +118,7 @@ def test_global(self): self.assertIn( ' action(', config) self.assertIn( ' type="omfile"', config) self.assertIn( ' file="/var/log/messages"', config) - self.assertIn( ' queue.size="262144"', config) + self.assertIn( ' rotation.sizeLimit="524288"', config) self.assertIn( ' rotation.sizeLimitCommand="/usr/sbin/logrotate /etc/logrotate.d/vyos-rsyslog"', config) def test_remote(self):