Command Line (CLI) Reference > CLI Commands > Logging

CLI: 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 logs files. The appliance logs activities to a set of system log files.

Configuring logging parameters

logging {files|local|receive|fields|format|level|trap|<hostname or IP-address>}

To specify when to rotate the log files:

logging files rotation {criteria {frequency|size|size-pct} | force}

To specify the maximum number of old log files to keep:

logging files rotation max-num <number>

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}

To allow syslog messages to be received from remote hosts:

logging receive

To include the number of seconds since the epoch in the logs:

logging fields seconds {enable|fractional-digits|whole-digits}

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|info|debug}

To send event logs to a specified server using the syslog protocol:

logging <hostname or IPv4 address>

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

To view the log file:

show log [continuous] {matching|not matchin} <regex>

To view a listing of archived files:

show log files

To view the contents of a log file:

show log files <file number> [{matching| not matching} <regex>]