Configuration Guide Configuring Syslog
It is required to configure the function of sending syslogs to the log server as follows:
1. Set the IPv4 address of the log server to 10.1.1.100.
2. Set the level of logs that can be sent to the log server to debugging (Level 7).
3. Set the source interface to Loopback 0.
Configure parameters for sending syslogs to the log server.
Ruijie# configure terminal
Ruijie(config)# logging server 10.1.1.100
Ruijie(config)# logging trap debugging
Ruijie(config)# logging source interface Loopback 0
Run the show logging config command to display the configuration.
Ruijie#show logging config
Syslog logging: enabled
Console logging: level informational, 1307 messages logged
Monitor logging: level informational, 0 messages logged
Buffer logging: level informational, 1307 messages logged
File logging: level informational, 122 messages logged
File name:syslog_test.txt, size 128 Kbytes, have written 5 files
Standard format:false
Timestamp debug messages: datetime
Timestamp log messages: datetime
Sequence-number log messages: enable
Sysname log messages: enable
Count log messages: enable
Trap logging: level debugging, 122 message lines logged,0 fail
logging to 10.1.1.100
7.4.6 Writing Syslogs into Log Files
Configuration Effect
Write syslogs into log files at the specified interval so that the administrator can view history logs anytime on the local
device.