]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Collect journalctl output in ascending time order
authorKruti Pendharkar <kp025370@broadcom.com>
Tue, 18 Feb 2025 09:13:55 +0000 (01:13 -0800)
committerKruti Pendharkar <kp025370@broadcom.com>
Tue, 18 Feb 2025 09:13:55 +0000 (01:13 -0800)
Journalctl output should follow the same time-ascending
format as VMware logs.

open-vm-tools/scripts/common/vm-support

index 5da04850e67033f3c277eb2dd06233305770037d..5fb69d3b6255eca833246dec7d86007b0959eac4 100644 (file)
@@ -194,9 +194,8 @@ addJournalctl()
       return
    fi
    # Limit to 50000 lines per file so it is easier to view in editor
-   # collect newest logs first
    if which journalctl > /dev/null 2>&1 && which split > /dev/null 2>&1 ; then
-      journalctl -r --no-pager --since '1 month ago' 2> /dev/null | \
+      journalctl --no-pager --since '1 month ago' 2> /dev/null | \
          split -l 50000 -d - ${OUTPUT_DIR}${journalctlDir}/journalctl.out 2> /dev/null
    fi
 }