|
This chapter describes the Syslog service. It contains the following sections:
For information about starting and stopping the Syslog service, setting basic options, and controlling access to Syslog, see Chapter 2, "Configuring Services with the Cisco Service Manager."
The Syslog service receives messages from applications on the local host or from remote hosts (for example, a router or a printer) that have been configured to forward messages. Syslog directs messages to a log file. To each message that Syslog handles, it adds a timestamp, the message type keyword at the beginning of the message, and a newline at the end of the message.
The default message log for informational messages from the services is:
The log file is found in the directory into which you installed the CDDM or the Cisco Server Suite 1000.
Syslog forwards messages based on message class. The message class is a combination of the facility that issues the message and the priority. Table 10-1 lists the facilities and the keyword associated with each facility. Keywords local0 through local7 are for other, user-defined services. Although some of these keywords are pre-assigned to facilities, you may use them if you are not running those facilities.
Facility | Keyword |
---|---|
Authorization messages | auth or security |
BootP messages | bootp |
Daemon (background processes) messages | daemon |
Domain Name System messages | domainname |
GATED (gateway messages) | gated |
Kernel messages | kern |
Mail utility messages | |
Network Time Protocol (NTP) messages | ntp |
User-defined service | local0 |
User-defined service | local1 (also used by BootP) |
User-defined service | local2 (also used by BIND) |
User-defined service | local3 (also used by GATED) |
User-defined service | local4 |
User-defined service | local5 (also used by NTP) |
User-defined service | local6 |
User-defined service | local7 |
Message priorities follow, listed from most severe to least severe:
The message class is in the form message type.priority level. You can specify multiple message classes for the same log file by separating them with a semicolon. Some examples of message classes are listed in Table 10-2.
Syslog forwards system messages to different log files based on message class. To specify the log files for the different message classes:
Step 1 Start the CSM.
Step 2 Choose Syslog from the Available Services list.
Step 4 Enter the message class in the format message type.priority level in the Class field.
Step 5 Enter the absolute path and file name of the log file in the Log File field. The default log files are shown in the screen for each service.
To forward messages to a log file on a different host, enter @hostname in the Log File field,
where hostname is the host where messages should be logged.
The other host must be running a Syslog daemon.
To forward system messages to a destination other than a file, in the Log File field, enter one of the parameters listed in Table 10-3.
Parameter | Destination |
---|---|
$DISCARD$ | Causes matching messages to be thrown away. |
$FILE$:filename | Designates filename as a file (for clarity). |
$DBWIN$ | Sends matching messages to the NT debug window (Windows NT only). |
$MESSAGEBOX$ | Causes matching messages to display in a pop-up message box (Windows NT only). |
$EVENTLOG$ | Forwards matching messages to the event log (Windows NT only). |
Step 6 Click Add.
Step 7 Repeat Steps 4 through 6 until you have added all of your message classes and log files.
Step 8 Choose Save Configuration from the File menu.
Your changes take effect after you restart the Syslog service.
|