# SNMP input with MIB

**URL:** https://discuss.elastic.co/t/snmp-input-with-mib/292673
**Category:** Logstash
**Created:** [December 22, 2021, 11:51am UTC](https://discuss.elastic.co/t/snmp-input-with-mib/292673 "2021-12-22T11:51:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Christer\_Palmen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christer_palmen/32/76857_2.png) [@Christer\_Palmen](https://discuss.elastic.co/u/Christer_Palmen)
#### Post date: [December 22, 2021, 11:51am UTC](https://discuss.elastic.co/t/snmp-input-with-mib/292673/1 "2021-12-22T11:51:32Z")

</div>

"Hello.  
I´m trying to setup an snmp polling function in our Elasticsearch with Logstash.  
Today it is an "Proof of Concept" with only one 4G router from the vendor named Advantech.  
I have followed the instructions found at Elastic and converted a MIB file from Advantech to an .dic using libsmi.  
the Input configuration at the pipeline for this PoC is quite simple.

" snmp {  
walk =\> [".1.3.6.1.4.1.30140"]  
hosts =\> [{ host =\> "udp:1.2.3.4/161" community =\> "public" version =\> "2c" retries =\> 3 }]  
mib\_paths =\> ["/Elastic/logstash/config/MIB/conel/CONEL-MIB.dic"]  
tags =\> ["nodes"]  
interval =\> 10  
}"

My issue is that I get this error when I start Logstash.  
"[2021-12-22T12:27:02,597][ERROR][logstash.javapipeline][SNMP-POC] Pipeline error {:pipeline\_id=\>"SNMP-POC", :exception=\>#\<LogStash::SnmpMibError: error parsing mib dic file: /Elastic/logstash/config/MIB/conel/CONEL-MIB.dic, error: (eval):1: invalid multibyte char (UTF-8)"

Any ideas on why I get this error?"

---

<div class="post-metadata">

### Author: ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)
#### Post date: [December 22, 2021, 2:25pm UTC](https://discuss.elastic.co/t/snmp-input-with-mib/292673/2 "2021-12-22T14:25:54Z")

</div>

> [@Christer\_Palmen](#):
>
> Any ideas on why I get this error?"

My guess it that something went wrong with the conversion and there is a UTF-8 character in the dic file that is not being expected.  
Can you link the MIB file? I'd like to try it as well.

---

<div class="post-metadata">

### Author: ![Christer\_Palmen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christer_palmen/32/76857_2.png) [@Christer\_Palmen](https://discuss.elastic.co/u/Christer_Palmen)
#### Post date: [December 22, 2021, 3:29pm UTC](https://discuss.elastic.co/t/snmp-input-with-mib/292673/3 "2021-12-22T15:29:37Z")

</div>

"  
I have tried converting 2 MIB files but get the same error, I am sending the link for these MIB files now.  
Hope you can find something that I could not

> **[CONEL-MIB.my](https://www.dropbox.com/s/am04gnq8r1i26in/CONEL-MIB.my?dl=0)**
>
> Shared with Dropbox

> **[CONEL-STATUS-MIB.my](https://www.dropbox.com/s/jeufgwuv0jdozi9/CONEL-STATUS-MIB.my?dl=0)**
>
> Shared with Dropbox

"

---

<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: [January 19, 2022, 3:30pm UTC](https://discuss.elastic.co/t/snmp-input-with-mib/292673/4 "2022-01-19T15:30:36Z")

</div>

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