logging with util-linux without systemd unit specified

If I log with util-linux logger as below:

/bin/logger "hello world"

I can see through journalctl my log line:

journalctl --since "-1m"
Oct 08 09:12:17 myhomepc duda[11670]: hello world

however what is the default pseudo unit file used that I can filter with?

journalctl -u "duda" --since "-1m" 

doesn’t return anything.

Asked By: JiroAderlai


journalctl -t duda --since "-1m" should work.

logger interfaces to the syslog(3) system log module and makes entries in the system log with its SYSLOG_IDENTIFIER (–id), see man logger(1).

           Log the PID of the logger process with each line. When the
           optional argument id is specified, then it is used instead of
           the logger command’s PID. The use of --id=$$ (PPID) is
           recommended in scripts that send several messages.

           Note that the system logging infrastructure (for example
           systemd when listening on /dev/log) may follow local socket
           credentials to overwrite the PID specified in the message.
           logger(1) is able to set those socket credentials to the
           given id, but only if you have root permissions and a process
           with the specified PID exists, otherwise the socket
           credentials are not modified and the problem is silently

journalctl allows filtering of a specified SYSLOG_IDENTIFIER, per man journalctl(1)

    Show messages for the specified syslog identifier SYSLOG_IDENTIFIER, or for any of the messages with a
Answered By: Joseph Tingiris
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.