Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

time-format

Syntax

time-format (year | millisecond | year millisecond);

Hierarchy Level

[edit system syslog]

Release Information

Statement introduced before Junos OS Release 7.4.

Statement introduced in Junos OS Release 9.0 for EX Series switches.

Statement introduced in Junos OS Release 11.1 for the QFX Series.

Description

Include the year, the millisecond, or both, in the timestamp on every standard-format system log message. The additional information is included for messages directed to each destination configured by a file, console, or user statement at the [edit system syslog] hierarchy level. As of Junos OS Release 11.4, the additional time information is also sent to destinations configured by a host statement.

By default, the timestamp specifies the month, date, hour, minute, and second when the message was logged—for example, Aug 21 12:36:30. However, the timestamp for traceoption messages is specified in milliseconds by default, and is independent of the [edit system syslog time-format] statement.

Note: When the structured-data statement is included at the [edit system syslog file filename] hierarchy level, this statement is ignored for the file.

Options

millisecond—Include the millisecond in the timestamp.

year—Include the year in the timestamp.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Published: 2013-08-09