Command Reference Syslog Commands
timestamp %facility-severity-mnemonic: description
Here is an example:
May 31 23:31:28 %SYS-5-CONFIG_I: Configured from console by console
The difference between the standard syslog format and the default syslog format lies in the following
marks:
The standard syslog does not have “*” before the timestamp and “:” after the timestamp.
The following example sets the standard syslog format.
Ruijie(config)# service standard-syslog
8.39 service sysname
Use this command to attach system name to logs in global configuration mode. Use the no form of this
command to restore the default setting.
service sysname
no service sysname
No system name is attached to logs by default.
Global configuration mode
This command allows you to decide whether to add system name in the log information.
The following example adds a system name in the log information:
Mar 22 15:28:02 %SYS-5-CONFIG: Configured from console by console
Ruijie #config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie (config)#service sysname
Ruijie (config)#end
Ruijie #
Mar 22 15:35:57 S3250 %SYS-5-CONFIG: Configured from console by console