logstash-plugins / logstash-integration-snmp

Logstash Integration Plugin for SNMP, including SNMP input and SNMP Trap Plugins
Apache License 2.0
0 stars 3 forks source link

logstash 8.1.5 logstash-input-snmptrap IPV6 #69

Closed 13593168165 closed 2 weeks ago

13593168165 commented 3 weeks ago

[INFO ][logstash.inputs.snmptrap ] It's a Trap! {:Port=>10620, :Community=>["public"], :Host=>"fd00:192:168:67::41"} [2024-01-18T10:26:27,807][WARN ][logstash.inputs.snmptrap ] SNMP Trap listener died {:exception=>#<socketError:bin: unsupported address "fd00:192:168:67::41" for protocol family inet>

edmocosta commented 3 weeks ago

Hi there! This log seems to be generated by the individual SNMP traps plugin (https://github.com/logstash-plugins/logstash-input-snmptrap), and not by this integration one.

The individual traps plugin does not support IPv6, probably causing this error.
If you want to migrate to the new integration plugin, please have a look at the behaviour changes, and run the following command:

bin/logstash-plugin install logstash-integration-snmp       

It will automatically replace both individual SNMP plugins (snmp, snmptrap) by this integration one, and it should support IPV6.

edmocosta commented 2 weeks ago

Closing this issue for now, please feel free to re-open it if the problem is happening with this integration plugin. Thanks!