Configuring the Syslog Log Level


Configuring the Syslog Level

Our system has five syslog levels. Listed in order of most fatal to least fatal, the levels are: Fatal, Error, Warning, Info, and Trace. By default, the system is set to the Warning level. You can, of course, change the log level by using the command set system log-level.


In the example below, the system logs messages from Info, Warning, Error, and Fatal levels since the system syslog level is set to Info.

admin@XorPlus# set system log-level info
admin@XorPlus# commit
Commit OK.
Save done.

admin@XorPlus# 

// You can display the log messages on the console screen by entering the following command: 

admin@XorPlus# exit
admin@XorPlus> syslog monitor on 

// If the switch's syslog level is Trace, the trace options of the modules should be turned on, as illustrated below. You can also turn on the OSPF trace options for debugging.
 
admin@XorPlus# set protocols ospf traceoptions packet all detail
admin@XorPlus# set system log-level trace
admin@XorPlus# commit 
Commit OK.
Save done.
admin@XorPlus# exit
admin@XorPlus> syslog monitor on 

Configuring the Syslog Logging Facility

In accordance with the syslog standard, the logging facility can be configured as [0, 7].

admin@XorPlus# set system log-facility 0
admin@XorPlus# commit 
Commit OK.
Save done.
admin@XorPlus#
Oct 17 15:22:42 XorPlus local0.warn : admin logined the switch
Oct 17 15:22:50 XorPlus local0.warn pica_sh: Tacacs send acct body send failed: wrote -1 of 127: Connection refused 
Oct 17 15:22:42 XorPlus local2.warn : admin logined the switch
admin@XorPlus# set system log-facility 2
admin@XorPlus# commit 
Commit OK.
Save done.
admin@XorPlus#


Copyright © 2024 Pica8 Inc. All Rights Reserved.