aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-02-23 22:43:05 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-05-09 14:37:59 +0100
commit7bc90f618f0549279544d26effae2e5197d85e2b (patch)
tree187527d841f54e462ab23eb79b35d6fa0592e9d5
parent5dc64012d44b329c4897dbb37b03ea03c1ad7abd (diff)
downloadsos-7bc90f618f0549279544d26effae2e5197d85e2b.tar.gz
[logs] collect journalctl verbosed logs with --all-logs only
Resolves: #1225 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/logs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py
index 6f91bbb9..c5e239b3 100644
--- a/sos/plugins/logs.py
+++ b/sos/plugins/logs.py
@@ -61,6 +61,9 @@ class Logs(Plugin):
if os.path.isfile(i):
self.add_copy_spec(i, sizelimit=self.limit)
+ if self.get_option('all_logs'):
+ self.add_journal(boot="this", allfields=True, output="verbose")
+
def postproc(self):
self.do_path_regex_sub(
r"/etc/rsyslog*",