You are not logged in.
Hello,
In `journalctl` is there a way to filter for critical errors only? I am referring to the lines which are highlighted in red colour when viewed in journalctl.
Thanks
Last edited by orschiro (2013-08-07 14:22:43)
Offline
pass to journalctl -p, --priority=, see the man page.
This silver ladybug at line 28...
Offline
I have to come back to my initial question. I can use `journalctl --priority X` to filter for errors with priority X, ranging from 0 to 7. But the man page also says the following:
Takes either a single numeric or textual log level (i.e. between 0/emerg
and 7/debug), or a range of numeric/text log levels in the form
FROM..TO.
How can I exactly specify FROM...TO range to filter for all errors from 0 to 7?
Offline
What have you tried? It took me 3 attempts to find out, and I am probably slower than most...
Offline
How can I exactly specify FROM...TO range to filter for all errors from 0 to 7?
Have you tried exactly as it says e.g. 'journalctl --priority 2..3'?
Offline
orschiro wrote:How can I exactly specify FROM...TO range to filter for all errors from 0 to 7?
Have you tried exactly as it says e.g. 'journalctl --priority 2..3'?
Thanks guys! What I tried was 2-3 because that sounded much more logical to me to indicate a range.
But the X..Y range works.
Offline