14

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?

1
  • See also this question: "Distinguishing levels in journalctl" Sep 9, 2021 at 18:54

2 Answers 2

7

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
1
journalctl --output cat --output-fields MESSAGE,PRIORITY

Unfortunately the priority is printed on a line of its own and as number only.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .