Networker

[Networker] syslog on Solaris 8

2003-01-15 23:54:13
Subject: [Networker] syslog on Solaris 8
From: Lee Hwan Meng <hwanlee AT SOFTHOME DOT NET>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 15 Jan 2003 23:24:10 -0500
Hi

I am trying to re-direct all Networker logs to file /var/adm/networker by
changing facility used by Networker to local6.notice

I have modified my /etc/syslog.conf as below and restarted it.

I did a logger test but local6.* messages are still being written
to /var/adm/messages.

Have I done something wrong here...



usin05:/var/adm> logger -p local6.alert "onl a test"

usin05:/var/adm> tail networker
...
Jan 16 03:53:54 usin05 hwanlee: [ID 702911 local6.alert] onl a test

usin05:/> tail /var/adm/messages
...
Jan 16 03:53:54 usin05 hwanlee: [ID 702911 local6.alert] onl a test


#ident  "@(#)syslog.conf        1.5     98/12/14 SMI"   /* SunOS 5.0 */
#
# Copyright (c) 1991-1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# syslog configuration file.
#
# This file is processed by m4 so be careful to quote (`') names
# that match m4 reserved words.  Also, within ifdef's, arguments
# containing commas must be quoted.
#
*.err;kern.notice;auth.notice                   /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
*.alert;kern.err;daemon.err                     operator
*.alert                                         root
*.emerg                                         *
# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice                    ifdef(`LOGHOST', /var/log/authlog, @loghost)
mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)
*.debug         /var/log/syslog
#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err                                        /dev/sysmsg
user.err                                        /var/adm/messages
user.alert                                      `root, operator'
user.emerg                                      *
)
# include local7.notice (for T3 monitoring) by HM 19/10/2002
local7.notice                   /var/adm/messages.t3
# Start of lines added by NetWorker - DO NOT DELETE OR CHANGE THIS LINE
# installed by postinstall on Wed Nov 27 09:50:26 GMT 2002
daemon.notice                   /dev/console
daemon.notice                   /nsr/logs/messages
daemon.notice                   operator
local0.notice                   /nsr/logs/summary
local0.alert                    root, operator
local6.notice                   /var/adm/networker
# End of lines added by NetWorker - DO NOT DELETE OR CHANGE THIS LINE

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>