[systemd-devel] Select on value of log message

Uoti Urpala uoti.urpala at pp1.inet.fi
Wed Aug 29 18:09:47 UTC 2018


On Wed, 2018-08-29 at 19:49 +0200, Cecil Westerhof wrote:
> There are a lot of ways you can select the output you get from
> journalctl, but it seems you cannot select on the message itself.
> That is why I need to do something like:
>      journalctl | grep 'Database is locked'
> 
> Is this true, or am I overlooking something?

Since version 237, journalctl has had a --grep option.

Message text is not indexed, so performance-wise this still requires
going through all messages (as limited by other options).




More information about the systemd-devel mailing list