Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
This document contains instructions on how to manually configure the /etc/syslog.conf file in order to meet the BellSouth standard requirements for UNIX platform services. The /etc/syslog.conf file contains information used by the system log daemon, syslogd, to forward a system message to appropriate log files and/or users. A configuration entry is composed of two tab-separated fields: selector action
The selector and action fields must be separated by one or more tabs; spaces dont work and become invisible errors that can be hard to track. Cutting and pasting with your Windows system is one way to introduce such errors. You can view the hidden characters by using the command cat vet /etc/syslog.conf . The selector field is a semicolon-separated list of priority specifications in the following format: facility.level;facility.level Recognized values for facility include: user Messages generated by user processes. This is the default priority for messages from programs or facilities not listed in this file. Messages generated by the kernel. The mail system. System daemons, such as in.ftpd. The authorization system: login, su, getty, among others. The line printer spooling system: lpr, lpc,among others. Reserved for the USENET network news system. Reserved for the UUCP system; it does not currently use the syslog mechanism. The cron/at facility; crontab, at, cron, among others. An asterisk indicates all facilities except for the mark facility.
Page 1 of 6 Version 7
PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.
IJSN0000
Page 2 of 6
Version 7
PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.
1 2
# vi /etc/syslog.conf
3 4
mail.info /var/adm/syslog/mail.log *.info;mail.none /var/adm/messages *.warning;mail.none /dev/console *.alert;mail.none /dev/sysmsg *.emerg * These fields should be tab-delimited. Do not use cut and paste.
# refresh -s syslogd
Sample file:
mail.info /var/adm/syslog/mail.log *.info;mail.none /var/adm/messages *.warning;mail.none /dev/console *.alert;mail.none /dev/sysmsg *.emerg * *.info /bto/sys/tng/em/opr/config/bos76886/pipe/oprpipe0023
IJSN0000
Page 3 of 6
Version 7
PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.
Action
edit /etc/syslog.conf Add the following lines: # vi /etc/syslog.conf
Details
mail.info /var/adm/syslog/mail.log *.info;mail.none /var/adm/syslog/syslog.log *.warning /dev/console mail.debug /var/adm/syslog/mail.log *.alert /dev/console *.emerg * THESE FIELDS SHOULD BE TAB-DELIMITED # kill -HUP `cat /var/run/syslog.pid`
4 5
Sample file:
# /etc/syslog.conf # # Modification history: # created: dff 5/3/91 # modified: dff 02.06.92 - redirected mail msgs to traditional place # modified: dff 09.08.92 - replaced self w/GA in forwarded warnings # tm 941202 second "*.warning /usr/adm/syslog" changed to /dev/console # tm 950821 10.x updates # wds 000927 changed mail.info to /var/adm/syslog/mail.log # wds 010307 Removed extraneous lines per CAR Case # 976387 ################################################################ ############# mail.info /var/adm/syslog/mail.log *.info;mail.none /var/adm/syslog/syslog.log *.warning # @(#)B.11.11_LR /dev/console
IJSN0000
Page 4 of 6
Version 7
PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.
Solaris Configuration On the SUN platforms, the syslogd daemon has been configured to write the syslog messages to /var/adm/messages. If you are unable to load the platform DDS package, you can perform the steps in order to create a properly formatted /etc/syslog.conf file:
Seq
1 2
Action
edit /etc/syslog.conf Add the following lines: # vi /etc/syslog.conf
Details
mail.info /var/adm/syslog/mail.log *.info;mail.none /var/adm/messages *.alert;mail.none /dev/console *.err;kern.notice;auth.notice /dev/sysmsg *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages THESE FIELDS SHOULD BE TAB-DELIMITED # kill -HUP `cat /var/run/syslog.pid`
4 5
Sample file:
# /etc/syslog.conf # # created: jeh # modified: # whk # wds # wds # wds #
03.01.94 07/15/97 07/07/00 - changed handling of mail messages 09/27/00 - changed handling of mail messages 05/08/02 - changed /dev/console to /dev/sysmsg
IJSN0000
Page 5 of 6
Version 7
PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.
AMENDMENT HISTORY Version 7 6 5 4 3 2 1 Date 01/22/2008 06/07/2007 06/05/2007 04/05/2007 03/30/2007 01/17/2007 03/01/2005 Revision Description Update ownership Changed doc reviewer Changed AIX example entries for /etc/syslog.conf Added notes that selector and action fields should be tab-delimited, not spaced Change owner to Russ O'Neal Remove duplicate line per case 6433122 Initial Issuance
IJSN0000
Page 6 of 6
Version 7
PRIVATE/PROPRIETARY/SECURE Contains Private and/or Proprietary Information. May Not Be Used Or Disclosed Outside The BellSouth Companies Except Pursuant To A Written Agreement. Must Be Securely Stored When Not In Use.