NetBSD Problem Report #47529

From jgw@sdf.org  Mon Feb  4 01:39:44 2013
Return-Path: <jgw@sdf.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 8665D63E568
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Feb 2013 01:39:44 +0000 (UTC)
Message-Id: <20130204013940.8901A1F25EF@ituner.sleepy.cat>
Date: Sun,  3 Feb 2013 17:39:40 -0800 (PST)
From: jgw@sdf.org
Reply-To: jgw@sdf.org
To: gnats-bugs@NetBSD.org
Subject: syslogd doesn't correctly follow syslog.conf rules
X-Send-Pr-Version: 3.95

>Number:         47529
>Category:       bin
>Synopsis:       syslogd doesn't correctly follow syslog.conf rules
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dholland
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 04 01:40:01 +0000 2013
>Last-Modified:  Sun Oct 06 23:53:21 +0000 2013
>Originator:     Jeff G Woodall
>Release:        NetBSD 6.99.16
>Organization:
>Environment:
System: NetBSD ituner.sleepy.cat 6.99.16 NetBSD 6.99.16 (GENERIC)
 #0: Fri Jan 18 03:30:55 UTC 2013
builds@b8.netbsd.org:/home/builds/ab/HEAD/i386/201301171940Z-obj/\
 home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386

Architecture: i386
Machine: i386
>Description:
In 5.x the following would direct messages from host globalinx _only_
to /var/log/globalinx.log:


  #/etc/syslog.conf
  -globalinx
  *.err;kern.*;auth.notice;authpriv.none;mail.crit	/dev/console

  *.info;auth,authpriv,cron,ftp,kern,lpr,mail.none	/var/log/messages
  kern.debug 						/var/log/messages

  auth,authpriv.info					/var/log/authlog

  cron.info						/var/log/cron
  ftp.info						/var/log/xferlog
  lpr.info						/var/log/lpd-errs
  mail.info						/var/log/maillog
  #uucp.info						/var/spool/uucp/ERRORS

  *.emerg							*
  #*.notice						root

  # Save all globalinx log messages to separate file
  !*
  +globalinx
  *.*							/var/log/globalinx.log

--

In current this same syslog.conf now logs to both /var/log/globalinx.log AND
/var/log/messages.

For both, syslogd is started with 'syslogd -b globalinx' , where globalinx is
an entry in /etc/hosts.  Adding '-U' option restores functionality, though it then
requires explict facility.level entries... 

>How-To-Repeat:
Setup in both 5.x and current and write log messages to syslogd remotely.

>Fix:
 ?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->dholland
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 04 Feb 2013 06:03:14 +0000
Responsible-Changed-Why:
I've been meaning to rewrite syslogd's parser, so I'll look into this.
(but not necessarily all that soon, so if anyone else feels like tackling it
don't wait for me)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.