Re: What's wrong with this in /etc/syslog.conf ?
- From: "K" <kd0x@xxxxxxxxx>
- Date: 22 Feb 2006 06:10:09 -0800
Dave (from the UK) wrote:
I am have written a C program to dump my file systems onto tape from my
Ultra 80 running Solaris 10 update 1.
The program writes some diagnostic information, such as barcodes via
syslog. I have added one line to /etc/syslog.conf
local1.debug /var/log/backup
with the hope of capturing the messages about the backups to a specific
file.
But this is generating an error message during boot, with
/var/adm/messages showing:
Feb 22 08:24:31 sparrow syslogd: line 12: unknown priority name "debug
/var/log/backup"
But I don't understand what is wrong with the line I have put in
/etc/syslog.conf. local1 is a valid facility, and debug is a valid
severity as defined in RFC 3164 - The BSD Syslog Protocol. So why is
Solaris complaining?
Here is the complete /etc/syslog.conf.
# cat /etc/syslog.conf
#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.
#
local1.debug /var/log/backup
*.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)
#
# 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 *
)
--
Dave K
Minefield Consultant and Solitaire Expert (MCSE).
Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually.
.
- References:
- What's wrong with this in /etc/syslog.conf ?
- From: Dave (from the UK)
- What's wrong with this in /etc/syslog.conf ?
- Prev by Date: Re: Solaris 10 x86 on Acer Aspire 5000
- Next by Date: Re: What's wrong with this in /etc/syslog.conf ?
- Previous by thread: Re: What's wrong with this in /etc/syslog.conf ?
- Next by thread: Re: What's wrong with this in /etc/syslog.conf ?
- Index(es):
Relevant Pages
|
|