On 2026-08-09, Mike <[email protected]> wrote:
> OK, test system with OpenBSD 7.9 AMD64 here.
>
> I installed the rsyslogd pkg.
>
> I copied the sample conf file over to rsyslog.conf
>
> Here's the relevant part of rc.conf.local...
>
> pkg_scripts=rsyslogd
> syslogd_flags=NO
> rsyslogd_flags=
>
> I rebooted the test system.
>
> I then saw ...
>
> # ps auxww | grep syslog
> _rsyslog 23994  0.0  0.1  7452  2560 ??  I       6:47PM    0:00.00 
> /usr/local/sbin/rsyslogd
>
> So the rc.conf.local entries seem to have worked.
>
> Yet, when I try
>
> logger test
>
> /var/log/messages does not show that entry.
>
> What am I missing?

Unlike syslogd(8) and syslog-ng (via the openbsd module), rsyslogd
does not support importing via the /dev/klog protocol used in OpenBSD
for local logging*.

You could run rsyslog alongside syslogd and forward log entries via a
network connection, otherwise rsyslog would need to be modified to
support this (probably via a new input module).


* (We have a special syscall, sendsyslog(2), used as a backend for
syslog/syslog_r calls that does not require a device node or socket on
the filesystem to work, which is good for software which should not
generally have access to files, and solves some problems around FD
exhaustion).

Reply via email to