SOLARIS SYSLOG

HomeSCJP | SCWCD | SCEA | SCSA

system of routing msgs  generated by the system or system utilities to a appropriate, manageable log files.

Messages are sent to

1. Console

2. System log file

3. Sent to a list of users logged on

4. forwarded to other hosts on a n/w.

syslog config file is located in /etc/syslog.conf.

syslogd daemon reads the file each time it is started.

Two fields of the syslog are :

 

1. selector - two fields ... facility.level

2. action

 

Facility  -

1. user

2. auth 

3. cron   

4. kern

5. lpr

6.local0-7

7. mail

8. news

9. mark

10.daemon

11. uucp

12. *

 

Severity

1. emer

2. alert

3. crit

4. err

5. warning

6. notice

7. info

8. debug

9. none

 

             

Note that the syslog conf file is processed via M4 macro processor.

auth.info /var/adm/messages ====> to ====> auth.crit /var/adm/messages

daemon.info /var/adm/messages ---> to -----> daemon.crit /var/adm/meessages

 

logger [-I] [-f file ] [-p priority ] [ -t tag ] [ message ]

logger -p user.err "system Restart "