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?
Asked
Active
Viewed 3,772 times
13

Avi Kivity
- 233
- 2
- 6
-
See also [this](https://unix.stackexchange.com/questions/408415/distinguishing-levels-in-journalctl) question: "Distinguishing levels in journalctl" – Matthias Braun Sep 09 '21 at 18:54
2 Answers
5
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

sivann
- 563
- 5
- 16
0
journalctl --output cat --output-fields MESSAGE,PRIORITY
Unfortunately the priority is printed on a line of its own and as number only.

Robert Siemer
- 542
- 9
- 19