# How to remove untranslated trap event from logstash?

**URL:** <https://discuss.elastic.co/t/how-to-remove-untranslated-trap-event-from-logstash/47087>\
**Category:** Logstash\
**Created:** [April 12, 2016, 8:21am UTC](https://discuss.elastic.co/t/how-to-remove-untranslated-trap-event-from-logstash/47087 "2016-04-12T08:21:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewarnier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewarnier/32/122260_2.png) [@andrewarnier](https://discuss.elastic.co/u/andrewarnier)\
**Post date:** [April 12, 2016, 8:21am UTC](https://discuss.elastic.co/t/how-to-remove-untranslated-trap-event-from-logstash/47087/1 "2016-04-12T08:21:10Z")

</div>

i have defined a lot of yaml for snmp trap that i want , and put these yaml in my mib directory(specificmibs), and defined the mib directory in my conf as follows,  
yamlmibdir =\> "/opt/logstash/vendor/bundle/jruby/1.9/gems/snmp-1.2.0/data/ruby/snmp/specificmibs"

but how to remove the event when the mib can't found in yamlmibdir ?

How can I make logstash drop it?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 12, 2016, 6:17pm UTC](https://discuss.elastic.co/t/how-to-remove-untranslated-trap-event-from-logstash/47087/2 "2016-04-12T18:17:00Z")

</div>

This question is almost word for word the same as [[drop] the same message](https://discuss.elastic.co/t/how-to-remove-an-trap-event-from-logstash/46955). Are you posting using multiple accounts?

What does a message that you want to drop look like and what does a message you want to keep look like?

---

<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:** [July 6, 2017, 5:02am UTC](https://discuss.elastic.co/t/how-to-remove-untranslated-trap-event-from-logstash/47087/3 "2017-07-06T05:02:44Z")

</div>


