SNMP Trap Monitoring with Logstash


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 => "" 
        port => 1062         
output { 
    elasticsearch { 
        hosts => [""] 
    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=>""}

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

Timeout: No Response from

What am I missing?

(Bryan Vest) #2

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.

(system) #3

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