© 2011 Fujitsu Technology Solutions
64
18 Configuring System Log
This chapter describes how to configure system log function which sends system logs to
syslog server.
Beginning in privileged EXEC mode, follow these steps to configure system logs to syslog
server:
Command Purpose
Step 1 configure Enter global configuration mode.
Step 2 logging host hostaddress [port]
[severitylevel]
Set the IP address and port number of
logging host/server which syslog
message to be sent.
Step 3 logging syslog To enable the syslog to configured hosts.
Step 4 exit Return to privileged EXEC mode.
Step 5 show logging Verify the configuration of syslog
Step 6 show logging host Verify the configuration of syslog host
To create a syslog host, use logging host global configuration command. To enable or
disable syslog, use logging syslog global configuration command.
In this example, create a logging host to sent critical messages and enable the syslog
client.
(BX900-CB1)(Config)#logging host 172.16.2.109 514 critical
(BX900-CB1)(Config)#logging syslog
(BX900-CB1)(Config)#exit
(BX900-CB1)#show logging
Logging Client Local Port : 514
CLI Command Logging : disabled
Console Logging : disabled
Console Logging Severity Filter : alert
Buffered Logging : enabled
Syslog Logging : enabled
Log Messages Received : 94
Log Messages Dropped : 0
Log Messages Relayed : 14