386
Default
The timestamp format for logs sent to a log host is
date
.
Views
System view
Predefined user roles
network-admin
mdc-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.
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.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
size
: Specifies the maximum size of the trace log file, in the range of 1 to 10 MB.
Examples
# Set the maximum size of the trace log file to 6 MB.
<Sysname> system-view
[Sysname] info-center trace-logfile quota 6