home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / bugs / 4bsd / 217 < prev    next >
Encoding:
Text File  |  1992-09-11  |  2.0 KB  |  53 lines

  1. Newsgroups: comp.bugs.4bsd
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!raeburn
  3. From: raeburn@athena.mit.edu (Ken Raeburn)
  4. Subject: Re: syslogd problem
  5. In-Reply-To: eric@austin.ibm.com's message of 8 Sep 92 14:48:57 GMT
  6. Message-ID: <RAEBURN.92Sep11225504@cambridge.cygnus.com>
  7. Sender: news@athena.mit.edu (News system)
  8. Nntp-Posting-Host: cambridge.cygnus.com
  9. Organization: Cygnus Support, Cambridge MA
  10. References: <1992Sep8.144857.22346@awdprime.austin.ibm.com>
  11. Date: Sat, 12 Sep 1992 02:55:14 GMT
  12. Lines: 39
  13.  
  14. In article <1992Sep8.144857.22346@awdprime.austin.ibm.com> eric@austin.ibm.com (Eric Carpenter) writes:
  15.  
  16.    If machineA has the following syslog.conf file:
  17.  
  18.    user.alert    /tmp/alert
  19.    user.info    /tmp/info
  20.  
  21. ... so an alert-level message gets logged to both files ...
  22.  
  23.    user.alert    @machineB
  24.    user.info    @machineB
  25.  
  26. ... and gets sent twice to machine B ...
  27.  
  28.    and machineB has the following syslog.conf file:
  29.  
  30.    user.info    /tmp/info
  31.    user.alert    /tmp/alert
  32.  
  33. ... so each copy gets logged to both files ...
  34.  
  35.    Then when machineA does a syslog of an alert priority, 2 alert entries
  36.    are put in the /tmp/alert file of machineB.  Shouldn't there only be 1?
  37.    There is also 2 entries in the /tmp/info file of machineB, but this I 
  38.    can understand (one for the alert and one for the info).  When I comment 
  39.    out the .info entries from machineA's syslog.conf file, the problem goes 
  40.    away.
  41.  
  42. Right.  I think you'll get the "right" results by commenting out just
  43. the "user.alert @machineB" entry alone on machineA.  Then all messages
  44. of level "info" or above (including "alert") will be sent to machineB
  45. once, there logged to the appropriate file(s) as determined by the
  46. syslog.conf file there.
  47.  
  48. ~ Ken Raeburn        work: raeburn@cygnus.com    play: raeburn@mit.edu ~
  49. ~ Cygnus Support, One Kendall Square, Cambridge MA 02139 USA  ~ 617-494-1040  ~
  50. --
  51. ~ Ken Raeburn        work: raeburn@cygnus.com    play: raeburn@mit.edu ~
  52. ~ Cygnus Support, One Kendall Square, Cambridge MA 02139 USA ~  617-494-1040  ~
  53.