How to set the XOS logging level to be sent to external log server

book

Article ID: 168278

calendar_today

Updated On:

Products

XOS

Issue/Introduction

Not all logs that are seen in /var/log/messages file are sent to the external logging server by default.
There may be a need to send more logs to external logging server.

Cause

When external logging server is configured using the command 'configure logging server' in the XOS configuration, by default the logs above or equal to warning level are sent to the external logging server.
 

Resolution

The command 'console logging console' can be used to adjust the level of logs to be sent to external log server. Here is an example:

------
CBS1# config logging ?
[no] console - Sets logging event level (this is the level to sent to the remote server)
[no] monitor - Sets the logging monitor level (this should be set to info)
[no] server - Configures logging server

CBS1# config logging console ?
level <0-7> - Sets the logging level by number
level emerg - Sets the logging level to emergency
level alert - Sets the logging level to alert
level crit - Sets the logging level to critical
level error - Sets the logging level to error
level warning - Sets the logging level to warning.
level notice - Sets the logging level to notice
level info - Sets the logging level to information
level debug - Sets the logging level to debug
<cr> 

CBS1# config logging server 192.168.34.11
CBS1# config logging console level info

#######################

show run will contain:
#
logging console level 6
#
logging server 192.168.34.11