aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordluong <dluong@redhat.com>2019-09-06 13:34:43 -0400
committerBryn M. Reeves <bmr@redhat.com>2019-10-14 12:19:18 +0100
commitcb2d1a0e67abec3cad327c3e6aa7e18c25316086 (patch)
tree122c592b0e2ea1398dd55f7bb11cfb55449894e6
parent5c3287ac91088d0a046f9822e0c28b219c31a599 (diff)
downloadsos-cb2d1a0e67abec3cad327c3e6aa7e18c25316086.tar.gz
[manageiq] modify plugin to account for regularly large files
The following 5 files are usually over the default 25mb limit: ansible_tower.log automation.log evm.log production.log top_output.log Those 5 files interfere with the *.log glob to behave as users expect. These 5 files were broken out to miq_main_log_files. Resolves: #1779 Signed-off by: David Luong <dluong@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/manageiq.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/sos/plugins/manageiq.py b/sos/plugins/manageiq.py
index f71d1d97..90f69824 100644
--- a/sos/plugins/manageiq.py
+++ b/sos/plugins/manageiq.py
@@ -57,10 +57,20 @@ class ManageIQ(Plugin, RedHatPlugin):
# Log files to collect from miq_dir/log/
miq_log_dir = os.path.join(miq_dir, "log")
+
+ miq_main_log_files = [
+ 'ansible_tower.log',
+ 'top_output.log',
+ 'evm.log',
+ 'production.log',
+ 'automation.log',
+ ]
+
miq_log_files = [
'*.log',
'apache/*.log',
'*.txt',
+ '*.yml',
]
def setup(self):
@@ -74,6 +84,11 @@ class ManageIQ(Plugin, RedHatPlugin):
os.path.join(self.miq_conf_dir, x) for x in self.miq_conf_files
])
+ # Collect main log files without size limit.
+ self.add_copy_spec([
+ os.path.join(self.miq_log_dir, x) for x in self.miq_main_log_files
+ ], sizelimit=0)
+
self.add_copy_spec([
os.path.join(self.miq_log_dir, x) for x in self.miq_log_files
])