# SNMP map Values to Router Interface

**URL:** <https://discuss.elastic.co/t/snmp-map-values-to-router-interface/224312>\
**Category:** Logstash\
**Created:** [March 19, 2020, 8:52pm UTC](https://discuss.elastic.co/t/snmp-map-values-to-router-interface/224312 "2020-03-19T20:52:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitman22](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@hitman22](https://discuss.elastic.co/u/hitman22)\
**Post date:** [March 19, 2020, 8:52pm UTC](https://discuss.elastic.co/t/snmp-map-values-to-router-interface/224312/1 "2020-03-19T20:52:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 16, 2020, 8:52pm UTC](https://discuss.elastic.co/t/snmp-map-values-to-router-interface/224312/2 "2020-04-16T20:52:31Z")

</div>

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