diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-19 18:12:15 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-01-19 18:12:15 +0000 |
commit | d0408ac43e1ec3b114e69b2950202f87f2fcd250 (patch) | |
tree | b0d66062844c215061aa2c08bb4c275013ed9ffa | |
parent | 3f8c4b658c5d702bde59bdd98cb114ea0064eae9 (diff) | |
download | sos-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.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): |