syslog
This command specifies where to forward log messages.
Syntax
syslog address level
Availability
admin
account. When RBM enforcement does not apply to the CLI, this command is available to the following users.- The
adminaccount - Privileged users
- Local users with the appropriate command group added to their user group
Parameters
- address
- Specifies the IP address of the target server.
- level
- Specifies the base criticality of messages to forward to the target server.
- For only emergency events, enter
emerg. - For alert events and greater, enter
alert. - For critical events and greater, enter
critic. - For error events and greater, enter
error. - For warning events and greater, enter
warn. - For notice events and greater, enter
notice. - For information events and greater, enter
info. - For debug events and greater, enter
debug.
- For only emergency events, enter
Guidelines
Use the loglevel, logsize, and syslog commands to configure the system log. However, use the logging target command to enter Log Target mode. In this mode, you can exercise more precise control over log formats and contents.
Log events are characterized in descending order of importance.
Log levels can be expressed as character strings or as integer values, with 0 equating to the most important and 6 equating to the least important.
The log level specifies that all events of greater or equal importance to the argument are logged.
The loglevel command specifies the event types to log locally. The syslog command specifies a subset of locally logged events to forward to a remote system.
Reception of log events by the remote system requires the installation of a syslog daemon.
Examples
- Identify IP address 10.10.100.17 as the recipient of emergency events
only.
# syslog 10.10.100.17 0 - Identify IP address 10.10.100.17 as the recipient of emergency events
only.
# syslog 10.10.100.17 emerg - Identify IP address 10.10.100.17 as the recipient of error, critical, alert, and emergency
events.
# syslog 10.10.100.17 3