Log target commands
Log target mode provides the commands to create or modify a log target.
To enter the mode, use the Global logging target command. To delete a log target, use the no logging target command.
While in this mode, use the commands in the following table to configure a log target.
- To view the current configuration, use the show command.
- To restore default values, use the reset command.
- To exit this configuration mode without saving changes to the running configuration, use the cancel command.
- To exit this configuration mode and save changes to the running configuration, use the exit command.
| Command | Purpose |
|---|---|
| active-timeout | This command sets the timer to close an established and active connection to the server. |
| admin-state | This command sets the administrative state for the configuration. |
| ansi-color | This command manages a multicolored console log. |
| archive-mode | This command specifies an archival behavior for file-based logs. |
| backup | This command specifies a backup for the current log. |
| connect-timeout | This command sets the time to wait to establish a connection. |
| email-address | This command specifies the email address of a remote recipient of SMTP log messages. |
| event | This command adds an event class and a priority to the log target. |
| event-code | This command specifies an event code to add to the log target. |
| event-detection | This command suppresses identical events in the log target. This command is now deprecated. |
| event-filter | This command specifies an event code to exclude from the log target. |
| facility | This command specifies the syslog facility. |
| feedback-detection | This command suppresses events from the logging subsystem itself. |
| format | This command specifies the format in which events are added to the log. |
| idle-timeout | This command sets the idle timer for the logging target. |
| ip-filter | This command adds an IP address to include in the log target. |
| local-address | This command specifies the local address over which log events are transmitted to a remote recipient. |
| local-file | This command specifies a local file for log messages. |
| local-ident | This command sets the string that the remote recipient uses to identify this log target. |
| object | This command adds an object filter to the current log target. |
| priority | This command sets the service-level priority for the log target. |
| rate-limit | This command sets the maximum rate of events to log. |
| remote-address | This command specifies the destination address of log messages or the log itself. |
| remote-directory | This command specifies the remote directory where uploaded logs are stored. |
| remote-login | This command specifies the user name to use to upload a log file to a remote server. |
| remote-port | This command specifies the listening port on the remote server. |
| rotate | This command sets the maximum number of file rotations. |
| sender-address | This command specifies the email address of the sender. |
| size | This command sets the maximum size of a local log file. |
| smtp-domain | This command specifies the domain name of the SMTP client. |
| soap-version | This command specifies the version of SOAP to use. |
| ssl | This command associates an SSL proxy profile for SOAP-based log over HTTPS. |
| suppression-period | This command sets the interval to suppress identical events. |
| timestamp | This command specifies the time stamp format. |
| trigger | This command creates an event trigger. |
| type | This command identifies the logging model. |
| upload-method | This command sets the protocol to upload a file-based log to a remote site. |
| url | This command sets the destination for SOAP-based log entries. |