gabby 12 months ago
I don't know who needs to hear this, but if you have a systemd service that logs compact JSON records to stdout you can pretty-print them like this:
$ journalctl _SYSTEMD_UNIT="${SERVICE}" --output cat | jq
Note that `--unit "${SERVICE}"` does NOT work because that includes system messages, too