diff options
-rw-r--r-- | sos/plugins/insights.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sos/plugins/insights.py b/sos/plugins/insights.py index a175f6f8..f4fd542f 100644 --- a/sos/plugins/insights.py +++ b/sos/plugins/insights.py @@ -13,16 +13,24 @@ class RedHatInsights(Plugin, RedHatPlugin): '''Collect config and log for Red Hat Insights ''' plugin_name = 'insights' - packages = ['redhat-access-insights'] + packages = ['redhat-access-insights', 'insights-client'] profiles = ('system', 'sysmgmt') - conf_file = '/etc/redhat-access-insights/redhat-access-insights.conf' + config = ( + '/etc/insights-client/insights-client.conf', + '/etc/redhat-access-insights/redhat-access-insights.conf' + ) def setup(self): - self.add_copy_spec(self.conf_file) + self.add_copy_spec([ + self.config, + # Legacy log file location + "/var/log/redhat-access-insights/*.log" + ]) + if self.get_option("all_logs"): - self.add_copy_spec("/var/log/redhat-access-insights/*.log*") + self.add_copy_spec("/var/log/insights-client/*.log*") else: - self.add_copy_spec("/var/log/redhat-access-insights/*.log") + self.add_copy_spec("/var/log/insights-client/insights-client.log") def postproc(self): self.do_file_sub( |