How to setting logstash to listen snmptrap?
<p>I am a new to lostash and elastichsearch. I want to collection logs of network devices by snmptrap. I have a problem with logstash.</p>

<pre><code>+logstash-snmptrap.conf

input {
      snmptrap {
           community =&gt; "public"
           port =&gt; 160
           type =&gt; "snmp_trap"
             }
         }

output {
if [type] == "snmp_trap" {
   file {
     codec =&gt; "rubydebug"
     flush_interval =&gt; 1
     path =&gt; "/tmp/logstash-snmptrap.log"
         }
      }
}
</code></pre>

<p>I didn't get any error msg when i execute the command as follows,</p>

<pre><code>root@pc:~# /opt/logstash/bin/logstash -f /etc/logstash/conf.d/logstash-   
snmptrap.conf

Settings: Default filter workers: 1
Logstash startup completed
Settings: Default filter workers: 1
Logstash startup completed
</code></pre>

<p>but I can't find the file "/tmp/logstash-snmptrap.log" , 
what's wrong with my logstash config ?</p>