Re: rsyslogd pkg - trying to get it to work ...
Mike <[email protected]>
| Newsgroups | gmane.os.openbsd.misc |
|---|---|
| Message-ID | <[email protected]> |
On 8/10/2026 6:11 AM, Stuart Henderson wrote: > 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). > I'll take a look at syslog-ng. My main reason for this is that I like the logfile timestamps in ISO format (like the -Z option), but I want local-time not UTC timestamps. Thanks for the reply.