From 52311027127a479aaaba65977a3bc3e5ce2df681 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 29 Apr 2014 22:25:14 +0100 Subject: 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 --- sos/plugins/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'): -- cgit