Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!news-res.gsl.net!news.gsl.net!nntp.coast.net!dispatch.news.demon.net!demon!tarrant.microlise.co.uk!news From: andrewg@microlise.co.uk (Andrew Gierth) Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.programmer,comp.unix.misc Subject: Re: Syslogd Date: 04 Aug 1996 02:34:08 +0100 Organization: Microlise Engineering Ltd. Lines: 32 Message-ID: <ufn30clypc.fsf@zen.microlise.co.uk> References: <32023F32.6A63@entrust.com> NNTP-Posting-Host: zen.microlise.co.uk X-NNTP-Posting-Host: microl.demon.co.uk In-reply-to: Eric Jacksch's message of Fri, 02 Aug 1996 13:47:30 -0400 X-Attribution: AG X-Mayan-Date: Long count = 12.19.3.6.15; tzolkin = 12 Men; haab = 18 Xul X-Geek: (V3.1) GCS/IT/CC d-(pu) s:+> a- C++++$ UACHV++++$ P--- L E++ W(--) N+++ o? K? w--- O+++ M- V-- PS+ PE Y+(--) PGP- t+@ 5+++ X R@ tv(-) b++ DI? !D G++ e h* !r y Cc: ericjack@entrust.com X-Newsreader: Gnus v5.1 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:24890 comp.unix.programmer:40593 comp.unix.misc:24337 >>>>> "Eric" == Eric Jacksch <ericjack@entrust.com> writes: Eric> Does anyone happen to have a spec for syslogd lying around? Eric> I can't seem to find an RFC on the topic, and would like to Eric> find our more how it recieves data (i.e. does it just simply Eric> receive one UDP datagram per log entry and not reply? If so, Eric> does anyone have the data structure?) Like the vast majority of the BSD networking protocols, there is no RFC for syslog (unless I'm very much mistaken). The basic idea is that it receives messages of one line of text, with the facility/priority encoded as <n> at the beginning of the line, using either UDP, FIFOs, Unix domain DGRAM sockets, or straight out of the kernel (details vary between systems). You can probably get a good idea by reading the client code - look in GNU libc, for example, for the syslog() function. That should tell you everything you need to know about preparing and sending messages to syslogd. Eric> I can't easily locate source code for syslogd on the net - even Eric> that would be greatly appreciated! ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.sbin/syslogd (or any one of many mirrors). Hope this helps -- Andrew Gierth (andrewg@microlise.co.uk)