From 97a928c718c3fc2761267f76c6d5370b4edc704c Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Wed, 20 Nov 2024 09:02:05 +0000 Subject: [PATCH] [login] Capture 'last -F' output Invoking the command `last` with the `-F` flag will give all timestamps expanded so that they are human-readable Related: RHEL-68128 Signed-off-by: Jose Castillo --- sos/report/plugins/login.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sos/report/plugins/login.py b/sos/report/plugins/login.py index 89f9bff65f..6b302db1f2 100644 --- a/sos/report/plugins/login.py +++ b/sos/report/plugins/login.py @@ -17,10 +17,10 @@ class Login(Plugin, IndependentPlugin): profiles = ('system', 'identity') def setup(self): - self.add_cmd_output("last", root_symlink="last") + self.add_cmd_output("last -F", root_symlink="last") self.add_cmd_output([ - "last reboot", - "last shutdown", + "last -F reboot", + "last -F shutdown", "lastlog", "lastlog -u 0-999", "lastlog -u 1000-60000",