# Logstash, SNMP don't receive traps

**URL:** https://discuss.elastic.co/t/logstash-snmp-dont-receive-traps/48429
**Category:** Logstash
**Created:** [April 26, 2016, 12:42pm UTC](https://discuss.elastic.co/t/logstash-snmp-dont-receive-traps/48429 "2016-04-26T12:42:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vincent\_Vost](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_vost/32/9946_2.png) [@Vincent\_Vost](https://discuss.elastic.co/u/Vincent_Vost)
#### Post date: [April 26, 2016, 12:42pm UTC](https://discuss.elastic.co/t/logstash-snmp-dont-receive-traps/48429/1 "2016-04-26T12:42:26Z")

</div>

Hi everybody 🙂

I try to use SNMP with logstash, but my configuration or something is wrong and I don't find any information who can help me ☹

First : I don't understand how it should work,  
snmptrapd must run or not ? Or Logstash work like snmptrapd and receive trap on the port 162?

I have try this configuration :

> input {  
> snmptrap {  
> port =\> 162  
> community =\> 'public'  
> type =\> 'snmptrap'  
> yamlmibdir =\> "/opt/logstash/vendor/bundle/jruby/1.9/gems/snmp-1.2.0/data/ruby/snmp/mibs"  
> }  
> }

> output {  
> stdout {  
> codec =\> rubydebug  
> }  
> }

I have try to use it without port, community option but nothing change.  
Tcpdump recive the trap

I have prepare some enterprise mib in yaml format for the next step

Thank if someone can help me a little  
Vost

---

<div class="post-metadata">

### Author: ![Vincent\_Vost](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_vost/32/9946_2.png) [@Vincent\_Vost](https://discuss.elastic.co/u/Vincent_Vost)
#### Post date: [April 27, 2016, 12:29pm UTC](https://discuss.elastic.co/t/logstash-snmp-dont-receive-traps/48429/2 "2016-04-27T12:29:02Z")

</div>

Someone have an idea ?

---

<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: [July 6, 2017, 5:00am UTC](https://discuss.elastic.co/t/logstash-snmp-dont-receive-traps/48429/3 "2017-07-06T05:00:19Z")

</div>


