Configuration Guide Configuring Syslog
Run the show logging command to display the level of logs written into the memory buffer.
Related Commands
Writing Logs into the Memory Buffer
logging buffered [ buffer-size ] [ level ]
buffer-size: Indicates the size of the memory buffer.
level: Indicates the level of logs that can be written into the memory buffer.
Global configuration mode
By default, the level of logs written into the memory buffer is debugging (Level 7).
Run the show logging command in privileged EXEC mode to display the level of logs written into the
memory buffer and the buffer size.
Configuration Example
Writing Syslogs into the Memory Buffer
It is required to configure the function of writing syslogs into the memory buffer as follows:
1. Set the log buffer size to 128 KB (131,072 bytes).
2. Set the information level of logs that can be written into the memory buffer to informational (Level 6).
Configure parameters for writing syslogs into the memory buffer.
Ruijie# configure terminal
Ruijie(config)# logging buffered 131072 informational
Run the show logging config command to display the configuration and recent syslogs.
Ruijie#show logging
Syslog logging: enabled
Console logging: level informational, 1306 messages logged
Monitor logging: level informational, 0 messages logged
Buffer logging: level informational, 1306 messages logged
File logging: level informational, 121 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