Open
Description
I'd like to foward Messages that could not been parsed by napalm logs to my ELK stack server.
Napalm logs receives this Message:
[root@salt-master ~]# tcpdump -vnne tcp port 8080 or udp port 514 -i ens160
17:27:32.366652 00:50:56:b9:50:7b > 00:50:56:b9:ec:65, ethertype IPv4 (0x0800), length 231: (tos 0x0, ttl 64, id 14120, offset 0, flags [DF], proto UDP (17), length 217)
10.83.21.224.54530 > 10.83.21.232.514: SYSLOG, length: 189
Facility local7 (23), Severity warning (4)
Msg: 95662: <snip>: Feb 7 17:27:31.358: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEthernet0/1/1 (22), with sy-test16.<snip> GigabitEthernet1/0/1 (1).
Then napalm logs shows this in the log
[root@salt-master ~]# tail /var/log/napalm/logs
2019-02-07 17:27:32,368,368 [napalm_logs.device][INFO ] Syslog message not configured for os: ios tag CDP-4-NATIVE_VLAN_MISMATCH
This is my config:
[root@salt-master ~]# cat /etc/napalm/logs
log_level: info
port: 514
disable_security: true
extension_config_path: /etc/napalm/additional_config/
device_whitelist:
- ios
- opengear
publisher:
http:
address: 'http://elk.<snip>:8080'
method: POST
headers:
Content-Type: application/json
backend: requests
error_whitelist:
- RXDATA
- UNKNOWN
zmq:
address: 0.0.0.0
port: 49017
error_blacklist:
- RXDATA
In my understanding of the documentation I would expect that my ELK server should receive this message unparsed or am I wrong?