journalctl
allows me to filter on priority (-p
) and color-codes the priority in the output. But is there any way to get it to output the priority directly, as text?
2 Answers
The following output options display priority (and facility), but in a different format:
journalctl -o verbose
journalctl -o json (and json-pretty)
journalctl -o export
journalctl --output cat --output-fields MESSAGE,PRIORITY
Unfortunately the priority is printed on a line of its own and as number only.