How to view SNMP Traps with Logstash /Filebeat configuration

I am new to ELK. I want to get the snmp traps through filebeat/logstash and show it in Kibana. Can you provide the documentation/procedure to do that?

Configuration I tried in logstash.

input {
snmptrap {
type => "snmptrap"
community => "public"
port =>1062
yamlmibdir => "/opt/elk/logstash/vendor/bundle/jruby/2.3.0/gems/snmp-1.3.1/data/ruby/snmp/mibs"
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "snmp-sample"
#user => "elastic"
#password => "changeme"
}
}
}

Its not working.

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