Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

time-format

date_range 09-Dec-23

Syntax

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

Hierarchy Level

content_copy zoom_out_map
[edit system syslog]
[edit security log]

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, but not to destinations configured by a host statement.

However, in a Junos OS specific implementation using the FreeBSD console for a syslog destination, additional time information is available in system log messages for that destination when you configure the destination through 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.

The following example illustrates the format for a timestamp that includes both the millisecond (401) and the year (2006):

content_copy zoom_out_map
Aug 21 12:36:30.401 2006

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.

Release Information

Statement introduced before Junos OS Release 7.4.

external-footer-nav