# Can the snmptrap input plugin for logstash receive snmp version 3 traps?

**URL:** https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659
**Category:** Logstash
**Created:** [June 8, 2022, 9:06am UTC](https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659 "2022-06-08T09:06:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![selflabs](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@selflabs](https://discuss.elastic.co/u/selflabs)
#### Post date: [June 8, 2022, 9:06am UTC](https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659/1 "2022-06-08T09:06:48Z")

</div>

Hi Team, can we receive snmp v3 traps on logstash-input-smnptrap plugin. I have tried to get but getting errors. Below are my configuration and version details.

logstash version : logstash 8.2.2  
snmptrap plugin : logstash-input-snmptrap-3.1.0

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

```

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 8, 2022, 3:52pm UTC](https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659/2 "2022-06-08T15:52:01Z")

</div>

> [@selflabs](#):
>
> I have tried to get but getting errors.

What errors are you getting?

---

<div class="post-metadata">

### Author: ![selflabs](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@selflabs](https://discuss.elastic.co/u/selflabs)
#### Post date: [June 9, 2022, 6:00am UTC](https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659/3 "2022-06-09T06:00:11Z")

</div>

Hi Badger, here is the error while receiving the traps.

```auto
Error handling trap: 3
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/snmp-1.3.2/lib/snmp/pdu.rb:67:in `decode_version'
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/snmp-1.3.2/lib/snmp/pdu.rb:53:in `decode'
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/snmp-1.3.2/lib/snmp/manager.rb:711:in `block in process_traps'
org/jruby/RubyKernel.java:1442:in `loop'
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/snmp-1.3.2/lib/snmp/manager.rb:708:in `process_traps'
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmptrap-3.1.0/lib/logstash/inputs/snmptrap/patches/trap_listener.rb:17:in `process_traps'
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/snmp-1.3.2/lib/snmp/manager.rb:635:in `block in initialize'
Received data:
"0\x81\xA4\x02\x01\x030\x11\x02\x04t\xEB

```

---

<div class="post-metadata">

### Author: ![selflabs](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@selflabs](https://discuss.elastic.co/u/selflabs)
#### Post date: [June 13, 2022, 6:32am UTC](https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659/4 "2022-06-13T06:32:16Z")

</div>

Hi Badger, I look forward to hearing from you.

---

<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 11, 2022, 6:32am UTC](https://discuss.elastic.co/t/can-the-snmptrap-input-plugin-for-logstash-receive-snmp-version-3-traps/306659/5 "2022-07-11T06:32:53Z")

</div>

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