From 353434b7a5337f538e71fea0749cbe7bc2623318 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Wed, 23 Oct 2024 17:19:24 -0400 Subject: [PATCH] [foreman] Size limit production.log and ssl logs Adds a (high) default sizelimit to `production.log` and foreman `*ssl.log` collections to avoid potentially causing out of space issues on systems with large active logs. Signed-off-by: Jake Hunsaker --- sos/report/plugins/foreman.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sos/report/plugins/foreman.py b/sos/report/plugins/foreman.py index c18cac9ddf..13c67e346c 100644 --- a/sos/report/plugins/foreman.py +++ b/sos/report/plugins/foreman.py @@ -91,11 +91,10 @@ def setup(self): _host_f = self.exec_cmd('hostname -f')['output'] _host_f = _host_f.strip() - # Collect these completely everytime self.add_copy_spec([ "/var/log/foreman/production.log", f"/var/log/{self.apachepkg}*/foreman-ssl_*_ssl.log" - ], sizelimit=0) + ], sizelimit=500) # Allow limiting these self.add_copy_spec([