Configuration Guide Configuring Syslog
The timestamp records the time when a syslog is generated so that you can display and check the system event
conveniently. Ruijie devices support two syslog timestamp formats: datetime and uptime.
If the device does not have the real time clock (RTC), which is used to record the system absolute time, the device
uses its startup time (uptime) as the syslog timestamp by default. If the device has the RTC, the device uses its
absolute time (datetime) as the syslog timestamp by default.
The two timestamp formats are described as follows:
Datetime format
The datetime format is as follows:
Mmm dd yyyy hh:mm:ss.msec
The following table describes each parameter of the datetime.
Mmm refers to abbreviation of the current month. The 12
months in a year are written as Jan, Feb, Mar, Apr, May, Jun,
Jul, Aug, Sep, Oct, Nov, and Dec.
dd indicates the current date.
yyyy indicates the current year, and is not displayed by default.
hh indicates the current hour.
mm indicates the current minute.
ss indicates the current second.
msec indicates the current millisecond.
By default, the datetime timestamp displayed in the syslog does not contain the year and millisecond. You can run a
command to display or hide the year and millisecond of the datetime timestamp.
Uptime format
The uptime format is as follows:
dd:hh:mm:ss
The timestamp string indicates the accumulated days, hours, minutes, and seconds since the system is started.
7. Sysname
This field indicates the name of the device that generates the log so that the log server can identify the host that sends the
log. By default, this field is not displayed. You can run a command to display or hide this field.
8. Module
This field indicates the name of the module that generates the log. The module name is an upper-case string of 2 to 20
characters, which contain upper-case letters, digits, or underscores. The module field is mandatory in the log-type
information, and optional in the debug-type information.
9. Level
Eight syslog levels from 0 to 7 are defined. The level of syslogs generated by each module is fixed and cannot be modified.