4. Forwarding Syslog Messages from a Cisco IOS Router

Here are some links to Cisco commands to turn on syslog. Typically, it’s easier to use syslog than SNMP traps from network devices. The most basic IOS command to send syslog messages is:

logging 1.2.3.4

4.1. Other Cisco syslog Configurations

Here are some additional configurations for other Cisco devices. To set up these configurations follow the following steps using the configurations that follow below.

  1. Log on to the target router.

  2. Type the command enable at the prompt.

  3. Once you are prompted for a password, enter the correct password.

  4. Type the command config at the prompt.

  5. Type the command terminal at the configuration prompt.

  6. At the prompt, Set the Syslog forwarding mechanism. See example below:

    logging <IP address of the Zenoss server>

  7. Exit out all the prompts to the main router prompt.

Catalyst

set logging server enable
set logging server 192.168.1.100
set logging level all 5
set logging server severity 6

Local Director

syslog output 20.5
no syslog console
syslog host 192.168.1.100

PIX Firewalls

logging on
logging standby
logging timestamp
logging trap notifications
logging facility 19
logging host inside 192.168.1.100