Salt

The structured messages published by napalm-logs can be imported into the Salt event bus using the napalm-logs Engine introduced in the 2017.7 release (Nitrogen).

Configuration

The address and port fields on the napalm-syslog Salt engine side must correspond to the values configured for publish-address: 0.0.0.0 and publish-address: 0.0.0.0 on the napalm-logs side. Similarly, auth_address, auth_port, certificate, and transport would have the values specified for auth-address and auth-port, certificate, and transport: zmq.

Note

Do not conflate the address and the port arguments on the napalm-logs side with address and port napalm-syslog Salt Engine fields: they are not the same!

For more configuration options and usage examples of the napalm-syslog Salt Egine, please check the documentation.

Configuration example:

When the napalm-logs engine is started usign the command line $ napalm-logs -a 1.2.3.4 -p 1234 --publish-address 5.6.7.8 --publish-port 5678 --disable-security, or using the configuration file:

address: 1.2.3.4
port: 1234
publish_address: 5.6.7.8
publish_port: 5678
disable_security: true

The napalm-syslog engine is configured under the Salt Master or Minion:

engines:
  - napalm_syslog:
      transport: zmq
      address: 5.6.7.8
      port: 5678
      disable_security: true