Skip to content

Commit

Permalink
syslog: T6989: increase local log size form 256KiB -> 1MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
c-po committed Jan 20, 2025
1 parent 1840d1d commit aa08fe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions data/templates/rsyslog/rsyslog.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
)
}
Expand Down Expand Up @@ -120,4 +120,3 @@ if prifilt("{{ tmp | join(',') }}") then {

# Include all configuration files in /etc/rsyslog.d/
include(file="/etc/rsyslog.d/*.conf")

2 changes: 1 addition & 1 deletion smoketest/scripts/cli/test_system_syslog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit aa08fe2

Please sign in to comment.