Publisher¶
The publisher subsystem is a pluggable interface for outbound messages,
structured following the OpenConfig / IETF YANG models.
The messages can be published over a variety of services – see
Available publishers and their options.
From the command line, the publisher module can be selected using the
--publisher
option, e.g.:
$ napalm-logs --publisher kafka
From the configuration file, the publisher can be specified using the
publisher
option, eventually with several options. The options depend on the
nature of the publisher.
Example: publisher configuration using the default configuration
publisher: zmq
Example: publisher configuration using custom options
publisher:
kafka:
topic: napalm-logs-out
Note
The IP Address / port for the publisher be specified using the publish-address and publish-port configuration options.
Available publishers and their options¶
Additionally, the user can configure the following options, available to all publishers:
send_raw
¶
If this option is set, all processed syslog messages, even ones that have not matched a configured error, will be published over the specified transport. This can be used to forward to log server for storage.
Example:
publisher:
zmq:
send_raw: true
send_unknown
¶
If this option is set, all processed syslog messages, even ones that have not matched a certain operating system, will be published over the specified transport. This can be used to forward to log server for storage.
Example:
publisher:
kafka:
send_unknown: true