diff options
-rw-r--r-- | sos/plugins/logs.py | 5 | ||||
-rw-r--r-- | sos/plugins/system.py | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py index 8fdb9185..28db0e47 100644 --- a/sos/plugins/logs.py +++ b/sos/plugins/logs.py @@ -29,6 +29,11 @@ class Logs(Plugin): ] def setup(self): + self.add_copy_specs([ + "/etc/syslog.conf", + "/etc/rsyslog.conf" + )] + self.limit = self.get_option("syslogsize") self.add_copy_spec_limit("/var/log/boot*", sizelimit = self.limit) diff --git a/sos/plugins/system.py b/sos/plugins/system.py index cc287e15..a61e4c7c 100644 --- a/sos/plugins/system.py +++ b/sos/plugins/system.py @@ -21,11 +21,7 @@ class System(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): plugin_name = "system" def setup(self): - self.add_copy_specs([ - "/proc/sys", - "/etc/syslog.conf", - "/etc/rsyslog.conf", - ]) + self.add_copy_specs("/proc/sys") self.add_forbidden_path( "/proc/sys/net/ipv8/neigh/*/retrans_time") self.add_forbidden_path( |