SNMP map Values to Router Interface

Hello,

I am query my Router with SNMP with Logstash and I want to ask if it is possible to map the Fields for example ifHCOutOctets.1 to GigabitEthner1.ifHCOutOctets or something like that and the same also for ifHCInOctets.1.

This is my Logstash config which I have so far. This give me currently this as Output for each Interface: iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets.1 and iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.1.

Config:

input {
  snmp {
    walk => [".1.3.6.1.2.1.31.1.1.1.6", ".1.3.6.1.2.1.31.1.1.1.10"]
      hosts => [{host => "udp:127.0.0.1/161" community => "public" version => "2c"  retries => 2  timeout => 1000}]
  }
}

output {
   elasticsearch {
     hosts => ["127.0.0.1:9200"]
     manage_template => false
     index => "snmp-%{+YYYY.MM}"
 }
}

Thanks for any Help or Hint.

Regards
hitman22

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.