158
C
HAPTER
4: R
OUTER
C
OMMAND
R
EFERENCE
set syslog
<IP_address>
facility [log_auth|log_local0| |log_local1|log_local2 |
log_local3|log_local4|log_local5|log_local6|log_local7]
loglevel [critical|unusual|common|verbose]
Sets the error reporting level and the destination for SYSLOG entries that
are sent to the specified host. You must have previously defined this
syslog IP address using the
add syslog
command.
The text below details an example of a SYSLOG message sent when a PPP
user logs in but is unable to authenticate.
All SYSLOG messages generated by the
Auth
facility are sent regardless of
loglevel set.
All other
RAS 1500 facilities are sent only if their loglevels
match the configured syslog loglevel.
The four levels of logging are the following:
■
Critical
— A serious system error that may affect system integrity.
Default.
■
Unusual
— An abnormal event, which the system should recover
from.
■
Common
— A regularly occurring event.
■
Verbose
— A regular periodic event, for example, a routing update
message.
Do not confuse
set facility
and
set syslog
commands. The set
facility determines which messages are generated on the console or to a
telnetted PC — depending on the loglevel specified for each facility. The
set syslog command, however, determines which messages are saved —
depending on the global loglevel set for the particular SYSLOG host.
Jun 17 15:46:37 [149.112.214.100.8.2] At 03:48:17, Facility "PPP",
Level "CRITICAL":: PPP User login attempt failed.
Username: ppp1dgdg, if_name: slot:2/mod:1
Parameter
Description
<IP_address>
SYSLOG address where information is directed.
facility
SYSLOG facility where output is sent. See choices above.
Default:
log_auth
.
loglevel
SYSLOG loglevel to which output is assigned. See choices
above.