aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-29 22:25:14 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-04-29 22:25:14 +0100
commit52311027127a479aaaba65977a3bc3e5ce2df681 (patch)
tree14b02e78777806277bccc662b11d6e26b373ced0
parent3541182b0aa10592f8e1e5461af933c45f09f2f3 (diff)
downloadsos-52311027127a479aaaba65977a3bc3e5ce2df681.tar.gz
Don't use a glob to collect /var/log/boot.log
Using a glob to pick up the boot logs means that we can pull in unexpected content, e.g. /var/log/bootchart which may be large. Just pick up the log file we're interested in. Fixes Issue #150. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/logs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py
index 9a6fb4ae..5a1ac239 100644
--- a/sos/plugins/logs.py
+++ b/sos/plugins/logs.py
@@ -35,7 +35,7 @@ class Logs(Plugin):
])
self.limit = self.get_option("logsize")
- self.add_copy_spec_limit("/var/log/boot*", sizelimit = self.limit)
+ self.add_copy_spec_limit("/var/log/boot.log", sizelimit = self.limit)
self.add_copy_spec_limit("/var/log/cloud-init*", sizelimit = self.limit)
if self.get_option('all_logs'):