diff options
-rw-r--r-- | sos/plugins/squid.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sos/plugins/squid.py b/sos/plugins/squid.py index 0d596e5f..f1aea736 100644 --- a/sos/plugins/squid.py +++ b/sos/plugins/squid.py @@ -29,8 +29,12 @@ class RedHatSquid(Squid, RedHatPlugin): packages = ('squid',) def setup(self): - self.add_copy_spec_limit("/etc/squid/squid.conf", - sizelimit=self.get_option('log_size')) + log_size = self.get_option('log_size') + log_path = "/var/log/squid/" + self.add_copy_spec_limit("/etc/squid/squid.conf", sizelimit=log_size) + self.add_copy_spec_limit(log_path + "access.log", sizelimit=log_size) + self.add_copy_spec_limit(log_path + "cache.log", sizelimit=log_size) + self.add_copy_spec_limit(log_path + "squid.out", sizelimit=log_size) class DebianSquid(Squid, DebianPlugin, UbuntuPlugin): |