![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
SOLARIS SYSLOG |
|||||||
Home | SCJP | SCWCD | SCEA | SCSA |
Identify the functions of syslog.
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.
Recall the syntax of the syslog configuration file.
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
Deduce syslogd behavior from its configuration file.
Note that the syslog conf file is processed via M4 macro processor.
Configure syslog messages by increasing the logging severity level for both the login and telnet daemons.
auth.info /var/adm/messages ====> to ====> auth.crit /var/adm/messages
daemon.info /var/adm/messages ---> to -----> daemon.crit /var/adm/meessages
Use the command line to update the system log.
logger [-I] [-f file ] [-p priority ] [ -t tag ] [ message ]
logger -p user.err "system Restart "