syslog.conf revision 3229
1214501Srpaulo#
2214501Srpaulo# syslog configuration file for SunOS 4.X
3214501Srpaulo# (modified to do local2 separately)
4214501Srpaulo#
5252190Srpaulo# This file is processed by m4 so be careful to quote (`') names
6252190Srpaulo# that match m4 reserved words.  Also, within ifdef's, arguments
7214501Srpaulo# containing commas must be quoted.
8214501Srpaulo#
9214501Srpaulo# Note: Have to exclude user from most lines so that user.alert
10214501Srpaulo#	and user.emerg are not included, because old sendmails
11214501Srpaulo#	will generate them for debugging information.  If you
12252190Srpaulo#	have no 4.2BSD based systems doing network logging, you
13252190Srpaulo#	can remove all the special cases for "user" logging.
14214501Srpaulo
15214501Srpaulo#*.err;kern.debug;auth.notice;user.none		/dev/console
16214501Srpaulokern.debug;user,mail.crit;auth.notice		/dev/console
17214501Srpaulodaemon,syslog,lpr,news,uucp,cron.err		/dev/console
18214501Srpaulo
19214501Srpaulo#*.err;kern.debug;daemon,auth.notice;mail.crit;user.none /var/adm/messages
20214501Srpaulokern.debug;user,mail.crit;auth.notice		/var/adm/messages
21214501Srpaulodaemon.notice;syslog,news,uucp,cron.err		/var/adm/messages
22214501Srpaulo
23214501Srpaulolpr.debug					/var/adm/lpd-errs
24214501Srpaulo
25214501Srpaulo*.alert;kern.err;daemon.err;user.none		operator
26214501Srpaulo*.alert;user.none				root
27214501Srpaulo
28214501Srpaulo*.emerg;user.none				*
29214501Srpaulo
30214501Srpaulo# for loghost machines, to have authentication messages (su, login, etc.)
31214501Srpaulo# logged to a file, un-comment out the following line and adjust the file name
32214501Srpaulo# as appropriate.
33214501Srpaulo#
34214501Srpaulo# if a non-loghost machine chooses to have such messages 
35214501Srpaulo# sent to the loghost machine, un-comment out the following line.
36214501Srpaulo#
37214501Srpaulo#auth.notice			ifdef(`LOGHOST', /var/log/authlog, @loghost)
38214501Srpaulo
39214501Srpaulomail.debug			ifdef(`LOGHOST', /var/log/syslog, @loghost)
40214501Srpaulo
41214501Srpaulo# following line for compatibility with old sendmails.  they will send
42214501Srpaulo# messages with no facility code, which will be turned into "user" messages
43214501Srpaulo# by the local syslog daemon.  only the "loghost" machine needs the following
44214501Srpaulo# line, to cause these old sendmail log messages to be logged in the
45214501Srpaulo# mail syslog file.
46214501Srpaulo#
47214501Srpauloifdef(`LOGHOST',
48214501Srpaulouser.alert					/var/log/syslog
49214501Srpaulo)
50214501Srpaulo#
51214501Srpaulo# non-loghost machines will use the following lines to cause "user"
52214501Srpaulo# log messages to be logged locally.
53214501Srpaulo#
54214501Srpauloifdef(`LOGHOST', ,
55214501Srpaulouser.err					/dev/console
56214501Srpaulouser.err					/var/adm/messages
57214501Srpaulouser.alert					`root, operator'
58214501Srpaulouser.emerg					*
59214501Srpaulo)
60214501Srpaulo
61214501Srpaulo# Local2: (bootpd, pppd)
62214501Srpaulolocal2.debug				/dev/console
63214501Srpaulo#local2.debug				/var/log/local2
64214501Srpaulo