aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-19 18:12:15 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-01-19 18:12:15 +0000
commitd0408ac43e1ec3b114e69b2950202f87f2fcd250 (patch)
treeb0d66062844c215061aa2c08bb4c275013ed9ffa
parent3f8c4b658c5d702bde59bdd98cb114ea0064eae9 (diff)
downloadsos-d0408ac43e1ec3b114e69b2950202f87f2fcd250.tar.gz
[squid] collect logs from /var/log/squid
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/squid.py8
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):