[systemd-devel] looking at journal of other users
Lennart Poettering
lennart at poettering.net
Tue Jul 12 10:57:32 UTC 2016
On Tue, 12.07.16 12:47, MichaĆ Zegan (webczat_200 at poczta.onet.pl) wrote:
> uhm the real question was: If I am already in the wheel group, how can I
> see the journal of other user? I believe that journalctl does not merge
> journals of all users in the system, does it? Even if it does, I believe
> it would be quite useful to be able to do journalctl --user someone and
> view his journal.
It will merge everything you have access to by default, as long as it
stems from the local host. "journalctl -m" then adds in even more,
such as stuff from local containers.
To filter logs from a specific user, try:
journalctl _UID=`id -u lennart`
(This will show all logs from user "lennart")
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list