COPYING LOG TO SERVER
I. Requirements
Copy logs with severity from 0 to 7 to syslog server.
II. Network Topology
III. Configuration Tips
Timestamps and sequence number features must be enabled before system copys logs to log server
IV. Configuration Steps
Ruijie>enable
Ruijie#configure terminal
Ruijie(config)#service sequence-numbers ——>enable sequence number
Ruijie(config)#service timestamps ——>enable timestamps
Ruijie(config)#interface vlan 1
Ruijie(config-if-VLAN 1)#ip address 192.168.1.1 255.255.255.0
Ruijie(config-if-VLAN 1)#exit
Ruijie(config)#logging server 192.168.1.2 ——>specify log server IP address
Ruijie(config)#logging source ip 192.168.1.1 ——>specify IP address on switch to communicate with log server
Ruijie(config)#logging trap 7 ——>copy all logs(severity from 0 to 7) to log server
Ruijie(config)#end
Ruijie#wr
V. Verification
This example shows how to verify the logs in a syslog server using “Kiwisyslog”