Including the Year or Millisecond in Timestamps
By default, the timestamp recorded in a system log message specifies the month, date, hour, minute, and second when the message was logged, as in the following example:
Aug 21 12:36:30To include the year, the millisecond, or both in the timestamp, include the
time-formatstatement at the[edit system syslog]hierarchy level:[edit system syslog]time-format (year | millisecond | year millisecond);The modified timestamp is used for messages directed to each destination configured by a
file,console, oruserstatement at the[edit system syslog]hierarchy level, but not to destinations configured bya hoststatement.The following example illustrates the format for a timestamp that includes both the millisecond (
401) and the year (2003):Aug 21 12:36:30.401 2003