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

Table fields are being mapped with the index value on the columns OIDs #62

Closed edmocosta closed 3 months ago

edmocosta commented 3 months ago

This integration plugin is not removing the "index" value from the tables column names/OIDs, resulting in an incomplete naming translation, and adding the index value to the end of the field name. For example.

Before upgrading to the integration plugin, the table fields were mapped as:

"iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifType" => 24,
"iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifSpeed" => 10000000,
"index" => "1"

and now, it includes the "index" value:

"iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifType.1" => 24,
"iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifSpeed.1" => 10000000,
"index" => "1"

It would be ideal to keep it backward compatible with the previous version, as this is not a desired breaking change.