aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-15 17:33:17 +0100
committerPep Turro Mauri <pep@redhat.com>2014-06-26 22:19:08 +0200
commitc228d9cbc98bbb88deb233ec03c09c10c6b195ca (patch)
tree73948d81d46eb7e64068c82b9d724f319c177668
parent242ece6f6d1eb621af39e3d645168216a27c1262 (diff)
downloadsos-c228d9cbc98bbb88deb233ec03c09c10c6b195ca.tar.gz
Add SSL logs to apache plugin and reduce log size limits
Add the 'ssl_access_log' and 'ssl_error_log' files to the default apache log collection and reduce the sizelimit passed to add_copy_spec_limit() from 15M to 5M. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/apache.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sos/plugins/apache.py b/sos/plugins/apache.py
index bb8be298..25764bc6 100644
--- a/sos/plugins/apache.py
+++ b/sos/plugins/apache.py
@@ -36,8 +36,10 @@ 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)
+ self.add_copy_spec_limit("/var/log/httpd/access_log", 5)
+ self.add_copy_spec_limit("/var/log/httpd/error_log", 5)
+ self.add_copy_spec_limit("/var/log/httpd/ssl_access_log", 5)
+ self.add_copy_spec_limit("/var/log/httpd/ssl_error_log", 5)
if self.get_option("log"):
self.add_copy_spec("/var/log/httpd/*")