From: Kruti Pendharkar Date: Tue, 18 Feb 2025 09:13:55 +0000 (-0800) Subject: Collect journalctl output in ascending time order X-Git-Tag: stable-13.1.0~239 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=147555ed7dd4665c682ed57121a3064e20be2cd5;p=thirdparty%2Fopen-vm-tools.git Collect journalctl output in ascending time order Journalctl output should follow the same time-ascending format as VMware logs. --- diff --git a/open-vm-tools/scripts/common/vm-support b/open-vm-tools/scripts/common/vm-support index 5da04850e..5fb69d3b6 100644 --- a/open-vm-tools/scripts/common/vm-support +++ b/open-vm-tools/scripts/common/vm-support @@ -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 }