Re: What's wrong with this in /etc/syslog.conf ?




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.

.



Relevant Pages

  • Whats wrong with this in /etc/syslog.conf ?
    ... 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. ... local1 is a valid facility, and debug is a valid severity as defined in RFC 3164 - The BSD Syslog Protocol. ... # if a non-loghost machine chooses to have authentication messages ...
    (comp.unix.solaris)
  • Re: sendmail log file
    ... # if a non-loghost machine chooses to have authentication messages ... # log messages to be logged locally. ... I can see at least 3 places where mail.* selectors exist above: ... Note that when a message priority exists in a syslog message selector, ...
    (comp.unix.solaris)
  • /var/adm/messages stops, dissapears.
    ... interesting problem with my syslog. ... On one system I have the /var/adm/messages file keeps disapearing ... Unusual System Events ... # if a non-loghost machine chooses to have authentication messages ...
    (SunManagers)
  • Syslog messages sent to loghost more than once
    ... I'm having an interesting problem with a remote syslog setup. ... (Yes, those are tabs, and loghost is properly defined (only once) ... # if a non-loghost machine chooses to have authentication messages ...
    (SunManagers)
  • mailx connection refused by localhost
    ... I get this error in syslog when I send mail using ... mailx on mye server which running Solaris. ...
    (SunManagers)