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 5,922 times
18
Avi Kivity
- 283
2 Answers
8
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
- 620
1
journalctl --output cat --output-fields MESSAGE,PRIORITY
Unfortunately the priority is printed on a line of its own and as number only.
Robert Siemer
- 593