*BSD News Article 92260


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!news.netspace.net.au!news.mira.net.au!news.vbc.net!vbcnet-west!knews.uk0.vbc.net!vbcnet-gb!azure.xara.net!xara.net!netcom.net.uk!ix.netcom.com!howland.erols.net!math.ohio-state.edu!jussieu.fr!fdn.fr!r2d2.fdn.org!sphynx.fdn.fr!caussep
From: caussep@sphynx.fdn.fr (Philippe CAUSSE)
Subject: Re: syslog'ing to another machine
X-Newsreader: TIN [version 1.2 PL2]
Organization: individual - paris - france
Message-ID: <E7r8DJ.1oz@sphynx.fdn.fr>
References: <01bc3b6d$3a299910$214f96cd@reality>
Date: Fri, 28 Mar 1997 13:05:43 GMT
Lines: 38
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37998

Kurt Schafer (kschafer@cyberbeach.net) wrote:
: Can anybody give some pointers on how one would configure syslogd to log
: messages to a different machine on the network ?  (and likewise how to set
: up the destination machine to accept them)

The answer is written in "man 5 syslog.conf"
Look at these lines:

     # Everybody gets emergency messages, plus log them on another
     # machine.
     *.emerg                                                 *
     *.emerg                                                 @arpa.berkeley.edu

The last line specifies that `emergency' logs are sent to the machine
"arpa.berkeley.edu". Put the name of the machine you want logs to be sent to
in lieu of arpa.berkeley.edu and it will do the job !

As simple as this 8-)


: Right now I've been mounting /var/log from the destination machine to the
: log machines but I don't really like doing this because of potential NFS
: locking problems.

You're perfectly right ! Mounting /var is not a good thing to do !
BTW, even for mail ! The recommended way for mail is to use the IMAP
daemon, which avoid NFS file lockings...

: TIA

: -Kurt

Cheers,
Phil.
-- 
-------------------------------------------------------------------
P. Causse			http://www.fdn.fr/~pcausse
4.4BSD/X11R6/Motif-2.0/C++	mailto:caussep@sphynx.fdn.fr (UUCP)