103
[Sysname] info-center timestamp boot
Related commands
info-center timestamp loghost
info-center timestamp loghost
Use
info-center timestamp loghost
to configure the timestamp format for logs sent to a log host.
Use
undo
info-center timestamp loghost
to restore the default.
Syntax
info-center timestamp
loghost
{
date
|
iso
[
with-timezone
] |
no-year-date
|
none
}
undo info-center timestamp
loghost
Default
The timestamp format for logs sent to a log host is
date
.
Views
System view
Predefined user roles
network-admin
Parameters
date
: Sets the timestamp format to mmm dd hh:mm:ss yyyy, such as Dec 8 10:12:21 2007. The
date
time shows the current system time.
iso
: Sets the ISO 8601 timestamp format, for example, 2009-09-21T15:32:55.
with-timezone
: Includes the time zone in the timestamp. The time zone is in the format hh:mm, for
example, 2013-04-12T19:20:50-04:00. If the system cannot get the time zone, Z is displayed, for
example, 2013-04-12T23:20Z.
no-year-date
: Sets the timestamp format to the current system date and time without year.
none
: Indicates that no timestamp information is provided.
Examples
# Set the timestamp format to
no-year-date
for logs sent to log hosts.
<Sysname> system-view
[Sysname] info-center timestamp loghost no-year-date
Related commands
info-center timestamp
info-center trace-logfile quota
Use
info-center trace-logfile quota
to set the maximum size of the trace log file.
Use
undo info-center trace-logfile quota
to restore the default.
Syntax
info-center trace-logfile quota size
undo info-center trace-logfile quota
Default
The maximum size of the trace log file is 1 MB.