Centralizing log messages to a syslog server can improve the manageability of any size network and can decrease response times to resolve problems. Sending router log messages to a remote server also allows longer archiving of messages than in a router’s limited storage. Messages stored by syslog have permanence that a router does not. When a router is reloaded or power cycled, the messages in its log are erased. This tech-recipe describes the configuration steps required to make a router send messages to a remote syslog server.
To send messages to the syslog server at 192.168.51.4, use this command from enable mode:
conf t
logging 192.168.51.4
The remote server must, of course, be configured to act as a syslog server and accept messages from the router.