Configuration Guide Configuring Syslog
Writing Syslogs into Log
Files
(Optional) It is used to configure parameters for writing syslogs into a file.
logging file flash:filename
[ max-file-size ] [ level ]
Configures parameters for writing syslogs
into a file, including the file storage type, file
name, file size, and log level.
logging flash interval seconds
Configures the interval at which logs are
written into log files. The default value is
3600.
logging life-time level level days
Configures the storage time of log files.
Configuring Syslog Filtering
(Optional) It is used to enable the syslog filtering function.
logging filter direction { all | buffer | file |
server | terminal }
Configures the log filtering direction.
logging filter type { contains-only |
filter-only }
Configures the log filtering mode.
logging filter rule exact-match module
module-name mnemonic mnemonic-name
level level
Configures the exact-match filtering rule.
logging filter rule single-match { level level
| mnemonic mnemonic-name | module
module-name }
Configures the single-match filtering rule.
Configuring Level-based
Logging
(Optional) It is used to configure logging policies to send the syslogs based on module
and severity level .
logging policy module module-name
[ not-lesser-than ] level direction { all |
server | file | console | monitor | buffer }
Sends logs to different destinations by
module and severity level
Configuring Delayed Logging
(Optional) It is used to enable the delayed logging function.
logging delay-send terminal
Enables delayed display of logs on the
Console and remote terminal.
logging delay-send file flash:filename
Configures the name of the file on the local
device where logs are buffered.
logging delay-send interval seconds
Configures the interval at which logs are sent
to the log server.
logging delay-send server { ip-address |
ipv6 ipv6-address } mode { ftp user
username password [ 0 | 7 ] password | tftp }
Configures the server address and delayed
logging mode.
Configuring Periodical
Logging
(Optional) It is used to enable the periodical logging function.
Enables the periodical logging function .