From owner-freebsd-questions Wed Jun 9 12:12:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 8A1FD14D1A for ; Wed, 9 Jun 1999 12:12:09 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id PAA06309; Wed, 9 Jun 1999 15:13:02 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199906091913.PAA06309@cc942873-a.ewndsr1.nj.home.com> Subject: Re: syslogd: unknown facility name "telnet" error In-Reply-To: <4.1.19990609131405.009f2740@mail.elehost.com> from Paul MacKenzie at "Jun 9, 99 01:18:18 pm" To: pc.mackenzie@utoronto.ca (Paul MacKenzie) Date: Wed, 9 Jun 1999 15:13:02 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Please CC the list when relpying. Thanks.] Paul MacKenzie wrote, > Chris, > > It is weird that this did not show up on the previous server (as the config was > the same) > > I have the following line > > telnet.* /var/log/telnetd > > How can I add this in as a facility (if possible at all)? 'telnet' is not a valid facility. See syslog(3) for a listing. > Obviously, the nature of the need is to log all telnet messages in a specific > area > > Thanks for your help I answered a similar question about named a while back, http://www.freebsd.org/cgi/getmsg.cgi?fetch=10144929+10147486+/usr/local/www/db/text/1999/freebsd-questions/19990509.freebsd-questions Grepping the telnetd code, I spotted the following, telnetd.c: openlog("telnetd", LOG_PID | LOG_ODELAY, LOG_DAEMON); Which shows telnet uses the 'daemon' facility for internal messages. However, I believe telnet calls 'login' which talks to the 'auth' facility. To catch all of that, you would enter something like, !telnetd *.* /var/log/telnetd Which I think should do it. HTH. > At 12:18 PM 09/06/99 -0400, you wrote: > >Paul MacKenzie wrote, > >> Any idea why I am getting this error? > >> > >> syslogd: unknown facility name "telnet" when syslogd starts > >> > >> Any help would be much appreciated. I was in the process of doing a test > >> reinstall of a system to see how fast I could do it and I ran into this > >> problem. > > > >Sending along a copy of your /etc/syslog.conf would probably be a good > >idea. My guess is that somewhere in syslog.conf you have something > >along the lines of, > > > >telnet.info /var/log/telnet.log > > > >But "telnet" is an unknown facility name. > >-- > >Crist J. Clark cjclark@home.com > -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message