|
|
5866eb |
From e8cdf68382ae9160363fd6dba4bf75afd047c764 Mon Sep 17 00:00:00 2001
|
|
|
5866eb |
From: Jan Jansky <jjansky@redhat.com>
|
|
|
5866eb |
Date: Tue, 25 May 2021 10:12:16 +0200
|
|
|
5866eb |
Subject: [PATCH] [foreman] Follow sizelimit to foreman maintain and installer
|
|
|
5866eb |
logs
|
|
|
5866eb |
|
|
|
5866eb |
Specifying add_copy_spec to a directory means all files from the
|
|
|
5866eb |
directory are collected. That is ridiculous for foremain-installer and
|
|
|
5866eb |
namely foreman-maintain logs, where we should stick to the size limit by
|
|
|
5866eb |
default. Hence collect files from the dir "specifically".
|
|
|
5866eb |
|
|
|
5866eb |
Related: #2554
|
|
|
5866eb |
Resolves: #2557
|
|
|
5866eb |
|
|
|
5866eb |
Signed-off-by: Jan Jansky <jjansky@redhat.com>
|
|
|
5866eb |
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
|
|
|
5866eb |
---
|
|
|
5866eb |
sos/plugins/foreman.py | 4 ++--
|
|
|
5866eb |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
5866eb |
|
|
|
5866eb |
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
|
|
|
5866eb |
index 58f5256..c742ebc 100644
|
|
|
5866eb |
--- a/sos/plugins/foreman.py
|
|
|
5866eb |
+++ b/sos/plugins/foreman.py
|
|
|
5866eb |
@@ -99,8 +99,8 @@ class Foreman(Plugin):
|
|
|
5866eb |
"/var/log/foreman-proxy/smart_proxy_dynflow_core*log*",
|
|
|
5866eb |
"/var/log/foreman-selinux-install.log",
|
|
|
5866eb |
"/var/log/foreman-proxy-certs-generate*",
|
|
|
5866eb |
- "/var/log/foreman-installer/",
|
|
|
5866eb |
- "/var/log/foreman-maintain/",
|
|
|
5866eb |
+ "/var/log/foreman-installer/*",
|
|
|
5866eb |
+ "/var/log/foreman-maintain/*",
|
|
|
5866eb |
"/var/log/syslog*",
|
|
|
5866eb |
# Specific to TFM, _all_ catalina logs are relevant. Adding this
|
|
|
5866eb |
# here rather than the tomcat plugin to ease maintenance and not
|
|
|
5866eb |
--
|
|
|
5866eb |
1.8.3.1
|
|
|
5866eb |
|