Skip to main content

logging with util-linux without systemd unit specified [Resolved]

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.

Question Credit: JiroAderlai
Question Reference
Asked October 9, 2019
Posted Under: Unix Linux
1 Answers

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).

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

credit: Joseph Tingiris
Answered October 9, 2019
Your Answer