- 论坛徽章:
- 0
|
回复 #12 yuhuohu 的帖子
root@hostname #cat /etc/syslog.conf
# Anything *.err and above, all kernel messages (apart from debug and info)
# and any auth messages (apart from debug and info) go to console(s):
*.err;kern.notice;auth.notice /dev/sysmsg
# Any alert messages (or above) go to root user:
*.alert root
# All emergency message (the highest) go to all logged in users:
*.emerg *
# Record all messages in /var/adm/messages apart from
# mail, lpf and auth ones (they are recorded in logfiles below)
*.debug;mail.none;lpr.none;auth.none /var/adm/messages
# All mail messages (apart from debug ones) go to
# mailmessages:
mail.info /var/adm/mailmessages
# All authentication events from info and above go to /var/log/authlog:
auth.info /var/log/authlog
# All lpr messages go to lprmessages:
lpr.debug /var/adm/lprmessages
# ------------------------------------------------------------------
#
# For reference, available facilities are:
# user Messages generated by user processes. This
# is the default priority for messages from
# programs or facilities not listed in this
# file.
#
# kern Messages generated by the kernel.
#
# mail The mail system.
#
# daemon System daemons, such as in.ftpd(1M)
#
# auth The authorization system: login(1), su(1M),
# getty(1M), among others.
#
# lpr The line printer spooling system: lpr(1B),
# lpc(1B), among others.
#
# news Designated for the USENET network news sys-
# tem.
#
# uucp Designated for the UUCP system; it does not
# currently use the syslog mechanism.
#
# cron Designated for cron/at messages generated by
# systems that do logging through syslog. The
# current version of the Solaris Operating
# Environment does not use this facility for
# logging.
# audit Designated for audit messages generated by
# systems that audit by means of syslog.
#
# local0-7 Designated for local use.
#
# mark For timestamp messages produced internally
# by syslogd.
#
# * An asterisk indicates all facilities except
# for the mark facility.
#
#
# For reference, all levels are (in descending order of severity):
# emerg For panic conditions that would normally be
# broadcast to all users.
# alert For conditions that should be corrected
# immediately, such as a corrupted system
# database.
#
# crit For warnings about critical conditions, such
# as hard device errors.
#
# err For other errors.
#
# warning For warning messages.
#
# notice For conditions that are not error condi-
# tions, but may require special handling. A
# configuration entry with a level value of
# notice must appear on a separate line.
#
# info Informational messages.
#
# debug For messages that are normally used only
# when debugging a program.
#
# none Do not send messages from the indicated
# facility to the selected file. For example,
# a selector of
#
# *.debug;mail.none
#
# sends all messages except mail messages to
# the selected file.
#Updated for POEM endpoint
local1.emerg;local1.alert;local1.crit;local1.err;local1.warning;local1.notice;local1.notice /opt/sw/Apps/Logs/csp_mon.log
# Tivoli logfile adapter entry, ID=
*.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info /tmp/.tivoli/.tecad_logfile.fifo.hostname.
# End of logfile adapter entry, ID= |
|