syslog-servers
This command configures the Syslog Servers table, which allows you to configure multiple (up to four) secondary remote syslog servers to where the device sends syslog messages.
Syntax
(config-troubleshoot)# syslog (syslog)# syslog-servers <Index> (syslog-servers-<Index>)#
Command |
Description |
---|---|
Index |
Defines the table row index. |
info-type {All|CDR|SDR|Syslog} |
Defines the type of information (only CDRs, only SDRs, only syslog, or all) to send in the syslog. |
interface |
Defines the interface for syslog communication. |
ip-address |
Defines the syslog server's IP address (IPv4 or IPv6). |
kafka-connection-string |
Defines the authentication and encryption string (password) for connecting to the Kafka broker (topic). |
kafka-topic-name |
Defines the Kafka topic name. When the Kafka broker is hosted on Microsoft Azure, the topic name is the Event Hub name. |
mode {Disabled|Enabled} |
Activates or deactivates the syslog server. |
port |
Defines the syslog server's port number. |
protocol {KAFKA|TCP|TLS|UDP} |
Defines the transport protocol for communicating with the Syslog server. |
severity-level {Alert|Critical| Debug|Emergency|Error|Informational| Notice|Warning} |
Defines the minimum severity level of messages included in the Syslog message. |
Command Mode
Privileged User
Niotes
■ | To configure the primary syslog server, see syslog. |
■ | Duplicated secondary syslog servers configuration is invalid (i.e., cannot have the same IP address and port) and none can have the same IP address and port as the primary syslog server. |
■ | The syslog sequence number resets if the device is restart. |
Example
This example configures a secondary syslog server:
(config-troubleshoot)# syslog (syslog)# syslog-servers 0 (syslog-servers-0)# ip-address 10.14.5.3 (syslog-servers-0)# mode Enabled
(syslog-servers-0)# severity-level Alert