Overview
This article describes the Exinda CLI command logging
.
You can use the logging
command to configure logging parameters and to show the system logs. You can use the show log command to view the log files. The appliance logs activities to a set of system log files.
Information
- {}: Options are enclosed in braces and are separated by '|'
- []: Optional keywords are enclosed in brackets
- <>: User input is required where variables are enclosed in greater-than and less-than symbols
Configuring Logging Parameters
The following table describes the commands used for configuring logging parameters:
Action Description |
Command | Parameter Description |
To specify when to rotate the log files | logging files rotation criteria frequency {daily|weekly|monthly} |
Rotate log files on a fixed schedule:
|
logging files rotation criteria size <megabytes> |
Rotate the log files when the log file surpasses a specified size threshold |
|
logging files rotation criteria size-pct <percentage> |
Rotate the logs when they surpass a specified percentage of the disk size |
|
logging files rotation force |
Force an immediate rotation of the log files |
|
To specify the maximum number of old log files to keep |
logging files rotation max-num <number> |
Not Applicable |
To delete log files | logging files delete {current|oldest} |
|
To specify the minimum severity level of log messages saved on the local disk | logging local {none|emerg|alert|crit|err|warning|notice|info|debug} |
|
|
Override log levels on a per-class basis |
|
To allow syslog messages to be received from remote hosts |
logging receive |
Not Applicable |
To include the number of seconds since the epoch in the logs | logging fields seconds enable |
Enable the seconds field |
logging fields seconds fractional-digits {1|2|3|6} |
Specify the number of digits to the right of the decimal point (truncation is from the right) |
|
logging fields seconds whole-digits {1|6|all} |
Specify the number of digits the left of the decimal point (truncation is from the left) |
|
To set the format of the log files | logging format {standard|welf} |
|
To set the severity of log entries recorded for select CLI commands | logging level cli commands {none|emerg|alert|crit|err|warning|notice| |
|
To send event logs to a specified server using the syslog protocol |
logging <hostname or IPv4 address> |
Not Applicable |
Set the minimum severity of log messages sent to syslog servers | logging trap {none|emerg|alert|crit|err|warning|notice|info|debug} |
|
Viewing Log Files
The following table describes the commands used for viewing log files:
Action Description | Command |
Parameter Description |
To view the log file | show log [continuous] {matching|not matching} <regex> |
|
To view a listing of archived files |
|
Not Applicable |
To view the contents of a log file | show log files <file number> [{matching| not matching} <regex>] |
|
Find more CLI commands.