Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!netnews.nwnet.net!nwnet.net!not-for-mail
From: aad@nwnet.net (Anthony D'Atri)
Newsgroups: comp.sys.sun.admin,info.bsdi.user,comp.unix.bsd.bsdi.misc
Subject: Re: SunOS 5.3 & BSDI syslogd not logging kern facility
Date: 12 Feb 1996 14:47:51 -0800
Organization: NorthWestNet, Bellevue, WA
Lines: 108
Message-ID: <4fog2n$j6s@olympus.nwnet.net>
References: <4fo686$bi5@olympus.nwnet.net>
Reply-To: aad@nwnet.net
NNTP-Posting-Host: olympus.nwnet.net
Xref: euryale.cc.adfa.oz.au comp.sys.sun.admin:62409 comp.unix.bsd.bsdi.misc:2425
I found my own answer eventually by slogging through Sun web server, which
was being very ssllooww. A quick test seems to indicate that BSDI 2.0.1 has
the same problem.
Bug Id: 1172130
Category: utility
Subcategory: program
State: accepted
Release summary: 5.4, 5.5, 4.1.3_U1, mars, s1093
Synopsis: syslog facilities for kernel are remapped as user.
Integrated in releases:
Patch id:
Description:
yslogd maps messages for the facilty of kernel (kern) to the facilty of user.
Messages sent from logger or syslog(3) with this facilty end up where the
user messages should be stored.
Reproduced by :
# cat /etc/syslog.conf
kern.debug /tmp/kern
user.debug /tmp/user
mail.debug /tmp/mail
daemon.debug /tmp/daemon
auth.debug /tmp/auth
syslog.debug /tmp/syslog
lpr.debug /tmp/lpr
news.debug /tmp/news
uucp.debug /tmp/uucp
cron.debug /tmp/cron
local0.debug /tmp/local0
local1.debug /tmp/local1
local2.debug /tmp/local2
local3.debug /tmp/local3
local4.debug /tmp/local4
local5.debug /tmp/local5
local6.debug /tmp/local6
local7.debug /tmp/local7
#
# cat /tmp/logtest
/usr/ucb/logger -p kern.debug kern
/usr/ucb/logger -p user.debug user
/usr/ucb/logger -p mail.debug mail
# syslogd -d &
off & running....
init
cfline(kern.debug /tmp/kern)
cfline(user.debug /tmp/user)
cfline(mail.debug /tmp/mail)
cfline(daemon.debug /tmp/daemon)
cfline(auth.debug /tmp/auth)
cfline(syslog.debug /tmp/syslog)
cfline(lpr.debug /tmp/lpr)
cfline(news.debug /tmp/news)
cfline(uucp.debug /tmp/uucp)
cfline(cron.debug /tmp/cron)
cfline(local0.debug /tmp/local0)
cfline(local1.debug /tmp/local1)
cfline(local2.debug /tmp/local2)
cfline(local3.debug /tmp/local3)
cfline(local4.debug /tmp/local4)
cfline(local5.debug /tmp/local5)
cfline(local6.debug /tmp/local6)
cfline(local7.debug /tmp/local7)
7 X X X X X X X X X X X X X X X X X X X X X X X X FILE: /tmp/kern
X 7 X X X X X X X X X X X X X X X X X X X X X X X FILE: /tmp/user
X X 7 X X X X X X X X X X X X X X X X X X X X X X FILE: /tmp/mail
X X X 7 X X X X X X X X X X X X X X X X X X X X X FILE: /tmp/daemon
X X X X 7 X X X X X X X X X X X X X X X X X X X X FILE: /tmp/auth
X X X X X 7 X X X X X X X X X X X X X X X X X X X FILE: /tmp/syslog
X X X X X X 7 X X X X X X X X X X X X X X X X X X FILE: /tmp/lpr
X X X X X X X 7 X X X X X X X X X X X X X X X X X FILE: /tmp/news
X X X X X X X X 7 X X X X X X X X X X X X X X X X FILE: /tmp/uucp
X X X X X X X X X X XX X X X 7 X X X X X X X X X FILE: /tmp/cron
X X X X X X X X X X X X X X X X 7 X X X X X X X X FILE: /tmp/local0
X X X X X X X X X X X X X X X X X 7 X X X X X X X FILE: /tmp/local1
X X X X X X X X X X X X X X X X X X 7 X X X X X X FILE: /tmp/local2
X X X X X X X X X X X X X X X X X X X 7 X X X X X FILE: /tmp/local3
X X X X X X X X X X X X X X X X X X X X 7 X X X X FILE: /tmp/local4
X X X X X X X X X X X X X X X X X X X X X 7 X X X FILE: /tmp/local5
X X X X X X X X X X X X X X X X X X X X X X 7 X X FILE: /tmp/local6
X X X X X X X X X X X X X X X X X X X X X X X 7 X FILE: /tmp/local7
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED:
logmsg: pri 56, flags 8, from fenway, msg syslogd: restart
Logging to FILE /tmp/syslog
syslogd: restarted
got a message (1, 0x2)
# /tmp/logtest
got a message (1, 0x2)
logmsg: pri 17, flags 2, from fenway, msg Jul 13 17:51:02 root: kern
Logging to FILE /tmp/user <### KERN mapped to USER ####
### Danger WIll Robinson ###
got a message (1, 0x2)
logmsg: pri 17, flags 2, from fenway, msg Jul 13 17:51:03 root: user
Logging to FILE /tmp/user
got a message (1, 0x2)
logmsg: pri 27, flags 2, from fenway, msg Jul 13 17:51:03 root: mail
Logging to FILE /tmp/mail
got a message (1, 0x2)
Summary:
Messages sent from logger or syslog(3) with this facilty end up where the
user messages should be stored.