SYSLOGD(8N) COMMAND REFERENCE SYSLOGD(8N)
NAME
syslogd - log systems messages
SYNOPSIS
/etc/syslogd [ -fconfigfile ] [ -d ]
DESCRIPTION
Syslogd reads and logs messages into a set of files
described by the configuration file /etc/syslog.conf. Each
message is one line. A message can contain a priority code,
marked by a number in angle braces at the beginning of the
line. Priorities are defined in <syslog.h>. Syslogd reads
from the UTek domain socket /dev/log, from an Internet
domain socket specified in /etc/services, and from the
special device /dev/klog (to read kernel messages).
Syslogd configures when it starts up and whenever it
receives a hangup signal. Lines in the configuration file
have a selector to determine the message priorities to which
the line applies and an action.
Selectors are semicolon separated lists of priority
specifiers. Each priority has a facility describing the
part of the system that generated the message, a dot, and a
level indicating the severity of the message. Symbolic
names may be used. An asterisk selects all facilities. All
messages of the specified level or higher are selected.
More than one facility may be selected using commas to
separate them. For example:
*.emerg mail,daemon.crit
selects all facilities at the emerg level and the mail and
daemon facilities at the crit level. Known facilities and
levels are described in syslog(3c).
The second part of each line describes where the message is
to be logged if this line is selected. There are four
forms:
1.A filename (beginning with a leading slash).
The file will be opened in append mode.
2.A hostname preceded by an at sign ( @ ).
Selected messages are forwarded to the syslogd on the
named host.
3.A comma separated list of users.
Selected messages are written to those users if they
are logged in.
4.An asterisk.
Printed 4/6/89 1
SYSLOGD(8N) COMMAND REFERENCE SYSLOGD(8N)
Selected messages are written to all logged-in users.
For example, the configuration file:
kern.debug /dev/console
*.notice,mail.info /usr/spool/adm/syslog
*.crit /usr/adm/critical
kern.err @tekecs
*.emerg *
*.alert steve,maynard
*.alert,auth.warning ralph
logs all kernel messages onto the system console, all notice
(or higher) level messages and all mail system messages
except debug messages into the file /usr/spool/adm/syslog,
and all critical messages into /usr/adm/critical; kernel
messages of error severity or higher are forwarded to
tekecs. All users will be informed of any emergency
messages, the users steve and maynard will be informed of
any alert messages, and the user ralph will be informed of
any alert message, or any warning message (or higher) from
the authorization system.
The flags are:
-f Specify an alternate configuration file.
-d Turn on debugging.
Syslogd creates the file /etc/syslog.pid, if possible,
containing a single line with its process id. This can be
used to kill or reconfigure syslogd.
To bring syslogd down, it should be sent a terminate signal,
for example:
kill `cat /etc/syslog.pid`
FILES
/etc/syslog.conf
the configuration file
/etc/syslog.pid
the process id
/dev/log the UTek domain datagram log socket
/dev/klog the kernel log device
CAVEATS
The kernel log device is not implemented in the current
version of UTek.
Printed 4/6/89 2
SYSLOGD(8N) COMMAND REFERENCE SYSLOGD(8N)
SEE ALSO
syslog(3c).
Printed 4/6/89 3
%%index%%
na:336,82;
sy:418,312;
de:730,2545;3683,1794;
fi:5477,347;
ca:5824,161;
se:6393,162;
%%index%%000000000118