logstash/logstash — pull request #344 by paulczar (2013-02-03 23:35:22+00:00)
Title: Added SNMP Trap input

# SNMP Trap Input

added input, included snmp gem in gemspec.

config look something like -

```
input {
snmptrap {
type => "snmptrap"
port => 162
community => "public"
}
}
```

the object from the snmp library is pretty sucky so I elected to just .inspect it for the event @message contents. next version can try to extract the object constituents into fields.

@message will look like

```
#], @timestamp=#, @generic_trap=6, @enterprise=[1.2.3.4.5.6], @source_ip="127.0.0.1", @agent_addr=#, @specific_trap=99>
```