# Logstash snmp output

**URL:** https://discuss.elastic.co/t/logstash-snmp-output/233486
**Category:** Logstash
**Created:** [May 20, 2020, 8:19am UTC](https://discuss.elastic.co/t/logstash-snmp-output/233486 "2020-05-20T08:19:36Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 20, 2020, 9:08pm UTC](https://discuss.elastic.co/t/logstash-snmp-output/233486/4 "2020-05-20T21:08:04Z")

</div>

If you want to trim iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.10101 down to just ifName you could use something similar to [this](https://discuss.elastic.co/t/rename-snmp-dynamic-fields/208236/4). Obviously you would have to change the if and add a second gsub to strip the leading elements of the name.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-snmp-output/233486)._
