I am facing an issue where log messages are not being forwarded to the console as expected.
Running rsyslogd under a module. When module restarts could find logs are not coming in console.
Also observed
root@user:~# ls -l /dev/log
lrwxrwxrwx 1 root root 28 Feb 25 14:42 /dev/log -> /run/systemd/journal/dev-log
root@user:~#
this link is getting lost.
To retain the link added this line in the rsyslog.conf file
$SystemLogSocketName /run/systemd/journal/dev-log
After adding this line could find link retain after restart of the module but logs (e.g., logs forwarded by rsyslog) are not appearing in the console despite being successfully written to the systemd journal.
In summary, journal logs are appearing in the console, but other logs are not.
even logger command is not working.
Any one please help me to figure out the issue.
If any other info required pls let me know.
deepa chandran is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.