aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Brantley <brantleyr@gmail.com>2016-10-18 11:35:56 -0400
committerBryn M. Reeves <bmr@redhat.com>2016-10-21 17:44:28 +0100
commit069932fe5d1eb9f7b1aba632bb587c73064fd238 (patch)
tree9c47bf401e82107d6bdeecf0eb44375d31e81e41
parentc9ac32b1ce157583db00961c7964abd94b4a9271 (diff)
downloadsos-069932fe5d1eb9f7b1aba632bb587c73064fd238.tar.gz
[insights] Update some verbiage and collect all log files.
Closes: #881.
-rw-r--r--sos/plugins/insights.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/sos/plugins/insights.py b/sos/plugins/insights.py
index a4b87807..7978ce35 100644
--- a/sos/plugins/insights.py
+++ b/sos/plugins/insights.py
@@ -15,8 +15,8 @@
from sos.plugins import Plugin, RedHatPlugin
-class RedHatAccessInsights(Plugin, RedHatPlugin):
- '''Collect config and log for Red Hat Access Insights
+class RedHatInsights(Plugin, RedHatPlugin):
+ '''Collect config and log for Red Hat Insights
'''
plugin_name = 'insights'
packages = ['redhat-access-insights']
@@ -24,10 +24,14 @@ class RedHatAccessInsights(Plugin, RedHatPlugin):
conf_file = '/etc/redhat-access-insights/redhat-access-insights.conf'
def setup(self):
- log_size = self.get_option('log_size')
self.add_copy_spec(self.conf_file)
- self.add_copy_spec_limit('/var/log/redhat-access-insights/*.log',
- sizelimit=log_size)
+ self.limit = self.get_option("log_size")
+ if self.get_option("all_logs"):
+ self.add_copy_spec_limit("/var/log/redhat-access-insights/*.log*",
+ sizelimit=self.limit)
+ else:
+ self.add_copy_spec_limit("/var/log/redhat-access-insights/*.log",
+ sizelimit=self.limit)
def postproc(self):
self.do_file_sub(