[systemd-devel] Short way to show messages of executable and unit with `journalctl`

Lennart Poettering lennart at poettering.net
Mon Apr 17 09:50:54 UTC 2017


On Fri, 14.04.17 20:30, Paul Menzel (paulepanter at users.sourceforge.net) wrote:

> Dear systemd folks,
> 
> 
> Is there a shorter way than below to show all messages of an executable
> and a unit?
> 
> ```
> $ journalctl _COMM=sudo + _SYSTEMD_UNIT=NetworkManager.service
> ```
> 
> I would be happy about a command, that involves `-u` so that I don’t
> have to type the suffix `.service`.

This is currently not available. And I am not sure this is a highly
typical usage that warrants an explicit option... Sorry...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list