Configuring SYSLOG

syslog is a standard for message logging, it's the mechanism through which messages generated by different containers are reported by the switch. These messages are reported in log files, or they can be sent to a remote syslog server.

Logging messages provide operational information about software components, including the status of the application, error reports, and detailed debugging data.

SYSLOG Servers

You can configure the logging of messages to a remote dedicated syslog server using the below command:

Reference

Command

[no] syslog add <ip4addr | ip6addr>

Description

Syslog server configuration

Parameters

IPv4 or v6 Address - Router IP

Mode

CONFIG

Example

pbnoscli(config)# syslog add 10.4.4.254
Syslog server 10.4.4.254 added to configuration
Restarting rsyslog-config service...
pbnoscli(config)#

pbnoscli(config)# syslog add 2401::1
Syslog server 2401::1 added to configuration
Restarting rsyslog-config service...
pbnoscli(config)# 

SYSLOG Severity configuration (Local and Remote)

You can configure the logging of messages to a remote dedicated syslog server. Syslog message whose priority is equal and higher than the configured numerical value (i.e. If the severity level "warning(4)" is set, syslog messages with severity levels of emergency(0), alert(1), critical(2), error(3), and warning(4) will be logged).

Reference

Command

logging level [alert | critical | debug | emergency | error | info | notice |

warning]

Description

alert Alert level

critical Critical level

debug Debug Level

emergency Emergency Level

error Error Level

info Informational Level

notice Notice Level

warning Warning Level

Parameters

Logging level

Mode

CONFIG

Command

no logging level

Description

enable all logging (default)

Parameters

None

Mode

CONFIG

Example

You can verify the configuration by using the command(s) below:

Last updated