logs-show: show seqnum info in export+json output mode

This commit is contained in:
Lennart Poettering
2023-01-19 22:42:03 +01:00
parent b1712fabd1
commit 2bc70e2e9d
3 changed files with 35 additions and 12 deletions

View File

@@ -70,7 +70,7 @@ ID=$(journalctl --new-id128 | sed -n 2p)
printf $'foo' | systemd-cat -t "$ID" --level-prefix false
journalctl --sync
journalctl -b -o export --output-fields=MESSAGE,FOO --output-fields=PRIORITY,MESSAGE -t "$ID" >/output
[[ $(grep -c . /output) -eq 6 ]]
[[ $(grep -c . /output) -eq 8 ]]
grep -q '^__CURSOR=' /output
grep -q '^MESSAGE=foo$' /output
grep -q '^PRIORITY=6$' /output