xref: /freebsd/libexec/bootpd/syslog.conf (revision 44099b7b1ec9c9295687eba077be6ad2931d292d)
144099b7bSPaul Traina#
244099b7bSPaul Traina# syslog configuration file for SunOS 4.X
344099b7bSPaul Traina# (modified to do local2 separately)
444099b7bSPaul Traina#
544099b7bSPaul Traina# This file is processed by m4 so be careful to quote (`') names
644099b7bSPaul Traina# that match m4 reserved words.  Also, within ifdef's, arguments
744099b7bSPaul Traina# containing commas must be quoted.
844099b7bSPaul Traina#
944099b7bSPaul Traina# Note: Have to exclude user from most lines so that user.alert
1044099b7bSPaul Traina#	and user.emerg are not included, because old sendmails
1144099b7bSPaul Traina#	will generate them for debugging information.  If you
1244099b7bSPaul Traina#	have no 4.2BSD based systems doing network logging, you
1344099b7bSPaul Traina#	can remove all the special cases for "user" logging.
1444099b7bSPaul Traina
1544099b7bSPaul Traina#*.err;kern.debug;auth.notice;user.none		/dev/console
1644099b7bSPaul Trainakern.debug;user,mail.crit;auth.notice		/dev/console
1744099b7bSPaul Trainadaemon,syslog,lpr,news,uucp,cron.err		/dev/console
1844099b7bSPaul Traina
1944099b7bSPaul Traina#*.err;kern.debug;daemon,auth.notice;mail.crit;user.none /var/adm/messages
2044099b7bSPaul Trainakern.debug;user,mail.crit;auth.notice		/var/adm/messages
2144099b7bSPaul Trainadaemon.notice;syslog,news,uucp,cron.err		/var/adm/messages
2244099b7bSPaul Traina
2344099b7bSPaul Trainalpr.debug					/var/adm/lpd-errs
2444099b7bSPaul Traina
2544099b7bSPaul Traina*.alert;kern.err;daemon.err;user.none		operator
2644099b7bSPaul Traina*.alert;user.none				root
2744099b7bSPaul Traina
2844099b7bSPaul Traina*.emerg;user.none				*
2944099b7bSPaul Traina
3044099b7bSPaul Traina# for loghost machines, to have authentication messages (su, login, etc.)
3144099b7bSPaul Traina# logged to a file, un-comment out the following line and adjust the file name
3244099b7bSPaul Traina# as appropriate.
3344099b7bSPaul Traina#
3444099b7bSPaul Traina# if a non-loghost machine chooses to have such messages
3544099b7bSPaul Traina# sent to the loghost machine, un-comment out the following line.
3644099b7bSPaul Traina#
3744099b7bSPaul Traina#auth.notice			ifdef(`LOGHOST', /var/log/authlog, @loghost)
3844099b7bSPaul Traina
3944099b7bSPaul Trainamail.debug			ifdef(`LOGHOST', /var/log/syslog, @loghost)
4044099b7bSPaul Traina
4144099b7bSPaul Traina# following line for compatibility with old sendmails.  they will send
4244099b7bSPaul Traina# messages with no facility code, which will be turned into "user" messages
4344099b7bSPaul Traina# by the local syslog daemon.  only the "loghost" machine needs the following
4444099b7bSPaul Traina# line, to cause these old sendmail log messages to be logged in the
4544099b7bSPaul Traina# mail syslog file.
4644099b7bSPaul Traina#
4744099b7bSPaul Trainaifdef(`LOGHOST',
4844099b7bSPaul Trainauser.alert					/var/log/syslog
4944099b7bSPaul Traina)
5044099b7bSPaul Traina#
5144099b7bSPaul Traina# non-loghost machines will use the following lines to cause "user"
5244099b7bSPaul Traina# log messages to be logged locally.
5344099b7bSPaul Traina#
5444099b7bSPaul Trainaifdef(`LOGHOST', ,
5544099b7bSPaul Trainauser.err					/dev/console
5644099b7bSPaul Trainauser.err					/var/adm/messages
5744099b7bSPaul Trainauser.alert					`root, operator'
5844099b7bSPaul Trainauser.emerg					*
5944099b7bSPaul Traina)
6044099b7bSPaul Traina
6144099b7bSPaul Traina# Local2: (bootpd, pppd)
6244099b7bSPaul Trainalocal2.debug				/dev/console
6344099b7bSPaul Traina#local2.debug				/var/log/local2
64