diff options
author | Renaud Métrich <rmetrich@redhat.com> | 2017-10-13 10:23:32 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-04-16 15:24:20 +0100 |
commit | 475740d2c3ca8508e4321ae7fb04c6bdfb122bdf (patch) | |
tree | 8b734bb820fd1bd2c947f99c19843af86f161ad2 | |
parent | 0e5c6b490931e9b1ee2a7b64631a822232d60a68 (diff) | |
download | sos-475740d2c3ca8508e4321ae7fb04c6bdfb122bdf.tar.gz |
[logs] Add gathering of systemd journal from previous boot
This is very useful to debug RHEL7 shutdown issues. To have the logs be
collected, it expects the customer to have Persistent Storage for the
journal turned on.
Resolves: #1125
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/logs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py index 5d693abf..477ec3e2 100644 --- a/sos/plugins/logs.py +++ b/sos/plugins/logs.py @@ -35,6 +35,8 @@ class Logs(Plugin): self.add_copy_spec("/var/log/cloud-init*", sizelimit=self.limit) self.add_journal(boot="this") self.add_journal(boot="this", allfields=True, output="verbose") + self.add_journal(boot="last") + self.add_journal(boot="last", allfields=True, output="verbose") self.add_cmd_output("journalctl --disk-usage") if self.get_option('all_logs'): |