CLI Reference Guide Syslog Configuration Commands
follows:
timestamp facility-severity-mnemonic: description
timestamp module name-severity level-information about mnemonic: detailed log information
For example: May 31 23:31:28 SYS-5-CONFIG_I: Configured from console by console
The differences between the private and the default log format lie in timestamp and identification
string. In the private log format, there is no “*” before the timestamp and no “:” after it and no “%”
before the identification string.
The following example adjusts the log format to the private one:
Ruijie(config)# service private-syslog
Enable the timestamp in log information.
service sequence-numbers
Use this command to attach sequential numbers into the logs. The no form of the command removes
the sequential numbers in the logs.
service sequence-numbers
no service sequence-numbers
No sequential numbers are attached.
Global configuration mode.
In addition to the timestamp, it is possible to add sequential numbers to the logs, numbering from 1.
Then, it is clearly known whether the logs are lost or not and their sequence.
The example below adds sequential numbers to the logs.
Ruijie(config)# service sequence-numbers
Record logs on different devices.
Attach the timestamp to the logs