Information Technology Reference
In-Depth Information
The following example uses the logger command to log a message with a
user.err priority:
$ logger -p user.err “This is a user error”
$ tail -1 /var/adm/messages
Aug 31 00:41:02 solaris9 dla: [ID 702911 user.error]
This is a user error
#
Messages Generated by the login Command
The login(1) command, used to log onto the system, can be configured to
generate auth.notice syslog messages when the root account logs onto the
system. In addition, multiple failed attempts to log in as root are logged as
auth.crit syslog messages. These messages are generated by the login com-
mand if the /etc/default/login file contains the following entry:
SYSLOG=YES
Messages Generated by Internet Services
The Internet services daemon, inetd(1M) , which is used to start the standard
Internet services, can be configured to trace incoming TCP connections
by logging the client IP address, TCP port number, and name of the
service as a daemon.notice syslog message. To enable this logging, add the
-t command-line argument to the inetd command at the end of the
/etc/init.d/inetsvc file.
Summary
The syslog facility accepts messages sent to it from the system (the ker-
nel and device driver) and user programs and handles them based on the
entries in the /etc/syslog.conf file.
Typically, the syslog facility writes these messages to the specified log file,
but other processing options are also supported.
A syslog message is categorized by its source, a source facility , and a priority,
or severity level .
Search WWH ::




Custom Search