🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #157

Re: syslogd problem

#157
From: Ken Raeburn
Date: Sat, 12 Sep 1992 02:55
39 lines
2083 bytes
In article <1992Sep8.144857.22346@awdprime.austin.ibm.com> eric@austin.ibm.com (Eric Carpenter) writes:

   If machineA has the following syslog.conf file:

   user.alert	/tmp/alert
   user.info	/tmp/info

... so an alert-level message gets logged to both files ...

   user.alert	@machineB
   user.info	@machineB

... and gets sent twice to machine B ...

   and machineB has the following syslog.conf file:

   user.info	/tmp/info
   user.alert	/tmp/alert

... so each copy gets logged to both files ...

   Then when machineA does a syslog of an alert priority, 2 alert entries
   are put in the /tmp/alert file of machineB.  Shouldn't there only be 1?
   There is also 2 entries in the /tmp/info file of machineB, but this I 
   can understand (one for the alert and one for the info).  When I comment 
   out the .info entries from machineA's syslog.conf file, the problem goes 
   away.

Right.  I think you'll get the "right" results by commenting out just
the "user.alert @machineB" entry alone on machineA.  Then all messages
of level "info" or above (including "alert") will be sent to machineB
once, there logged to the appropriate file(s) as determined by the
syslog.conf file there.

~ Ken Raeburn		work: raeburn@cygnus.com	play: raeburn@mit.edu ~
~ Cygnus Support, One Kendall Square, Cambridge MA 02139 USA  ~ 617-494-1040  ~
--
~ Ken Raeburn		work: raeburn@cygnus.com	play: raeburn@mit.edu ~
~ Cygnus Support, One Kendall Square, Cambridge MA 02139 USA ~  617-494-1040  ~
Technical Details
Message-ID: <RAEBURN.92Sep11225504@cambridge.cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!raeburn
References: <1992Sep8.144857.22346@awdprime.austin.ibm.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.bugs.4bsd
Path: arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!raeburn
From: raeburn@athena.mit.edu (Ken Raeburn)
Subject: Re: syslogd problem
In-Reply-To: eric@austin.ibm.com's message of 8 Sep 92 14:48:57 GMT
Message-ID: <RAEBURN.92Sep11225504@cambridge.cygnus.com>
Sender: news@athena.mit.edu (News system)
Nntp-Posting-Host: cambridge.cygnus.com
Organization: Cygnus Support, Cambridge MA
References: <1992Sep8.144857.22346@awdprime.austin.ibm.com>
Date: Sat, 12 Sep 1992 02:55:14 GMT
Lines: 39