diff options
-rw-r--r-- | sos/plugins/logs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py index 574ca2eb..d5f33deb 100644 --- a/sos/plugins/logs.py +++ b/sos/plugins/logs.py @@ -68,7 +68,11 @@ class RedHatLogs(Logs, RedHatPlugin): days = int(self.get_option("log_days")) except: days = 3 - self.add_cmd_output('journalctl --all --since="-%ddays"' % days) + if self.get_option("all_logs"): + since_opt = "" + else: + since_opt = '--since="-%ddays"' % days + self.add_cmd_output('journalctl --all %s' % since_opt) class DebianLogs(Logs, DebianPlugin, UbuntuPlugin): |