diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-04-15 13:51:51 +0100 |
---|---|---|
committer | Pep Turro Mauri <pep@redhat.com> | 2014-06-26 22:19:07 +0200 |
commit | 9bb14df0ec9fac73483f843b629c6b2fd6303e2c (patch) | |
tree | 7de9c052e42d07b71e5d7d13521d7b80622342df | |
parent | 218071921d15391752ddb2113c35a7412381cfbd (diff) | |
download | sos-9bb14df0ec9fac73483f843b629c6b2fd6303e2c.tar.gz |
Default to collecting current logs in apache plugin
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/apache.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/apache.py b/sos/plugins/apache.py index bad943ba..bb8be298 100644 --- a/sos/plugins/apache.py +++ b/sos/plugins/apache.py @@ -35,6 +35,9 @@ class RedHatApache(Apache, RedHatPlugin): self.add_forbidden_path("/etc/httpd/conf/password.conf") + # collect only the current log set by default + self.add_copy_spec_limit("/var/log/httpd/access_log", 15) + self.add_copy_spec_limit("/var/log/httpd/error_log", 15) if self.get_option("log"): self.add_copy_spec("/var/log/httpd/*") @@ -48,6 +51,10 @@ class DebianApache(Apache, DebianPlugin, UbuntuPlugin): self.add_copy_specs([ "/etc/apache2/*", "/etc/default/apache2"]) + + # collect only the current log set by default + self.add_copy_spec_limit("/var/log/apache2/access_log", 15) + self.add_copy_spec_limit("/var/log/apache2/error_log", 15) if self.get_option("log"): self.add_copy_spec("/var/log/apache2/*") |