# SNMP Trap Monitoring with Logstash

**URL:** <https://discuss.elastic.co/t/snmp-trap-monitoring-with-logstash/114742>\
**Category:** Logstash\
**Created:** [January 9, 2018, 6:11pm UTC](https://discuss.elastic.co/t/snmp-trap-monitoring-with-logstash/114742 "2018-01-09T18:11:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swasheck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swasheck/32/26393_2.png) [@swasheck](https://discuss.elastic.co/u/swasheck)\
**Post date:** [January 9, 2018, 6:11pm UTC](https://discuss.elastic.co/t/snmp-trap-monitoring-with-logstash/114742/1 "2018-01-09T18:11:59Z")

</div>

Currently running ELK 6.1.1 (Docker `sebp/elk`) and trying to get SNMP trap monitoring functional. My current config is as follows:

```
input { 
    snmptrap { 
        type => "snmptrap" 
        host => "0.0.0.0" 
        port => 1062         
    }
} 
output { 
    elasticsearch { 
        hosts => ["127.0.0.1:9200"] 
    } 
    stdout { codec => rubydebug } 
}

```

I do see the input is functioning

> [2018-01-09T17:39:45,442][INFO][logstash.inputs.snmptrap] It's a Trap! {:Port=\>1062, :Community=\>["public"], :Host=\>"0.0.0.0"}

However, all of my attempts to get a response from within the container end up with timeouts/no reponse

`snmpwalk -v2c -c public localhost:1062`

> Timeout: No Response from localhost:1062

`snmpwalk -v2c -c public 127.0.0.1:1062`

> Timeout: No Response from 127.0.0.1:1062

What am I missing?

---

<div class="post-metadata">

**Author:** ![murlin99](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@murlin99](https://discuss.elastic.co/u/murlin99)\
**Post date:** [January 9, 2018, 9:00pm UTC](https://discuss.elastic.co/t/snmp-trap-monitoring-with-logstash/114742/2 "2018-01-09T21:00:01Z")

</div>

You will not get an snmpwalk response from an snmptrap input. To test it you need to send a test trap using the snmptrap command.

---

<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:** [February 6, 2018, 9:00pm UTC](https://discuss.elastic.co/t/snmp-trap-monitoring-with-logstash/114742/3 "2018-02-06T21:00:19Z")

</div>

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