[Contents] [Prev] [Next] [Index] [Report an Error]


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:30

To include the year, the millisecond, or both in the timestamp, include the time-format statement 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, or user statement at the [edit system syslog] hierarchy level, but not to destinations configured by a host statement.

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

[Contents] [Prev] [Next] [Index] [Report an Error]