time-format
Syntax
time-format (year | millisecond | year millisecond);
Hierarchy Level
[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
):
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.
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.