Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Use syslog to log Cisco devices

Shulou Source: shulou.com Published: 2022-06-01 05:00:28 11月25日 Update

Use syslog to log Cisco devices

The following configuration describes how to send logs from a Cisco device to a syslog server

Device#conf t

Device (config) # logging on

Device (config) # logging a.b.c.d / / IP address of the log server

Device (config) # logging facility local1

/ / facility logo. The local device ID specified by RFC3164 is local0-local7.

Device (config) # logging trap errors / / logging level, available "?" View details

Device (config) # logging source-interface E0 / / Source IP address to send out the log

Device (config) # service timestamps log datetime localtime

/ / timestamp settings for logging, which can be configured as needed

Inspection

Device#sh logging

Tags: Log device address server identity service configuration content time level a.b.c.d verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi Microsoft MySQL OPPO Reno