# Which SNMP versions are supported for snmptrap plugin?

**URL:** <https://discuss.elastic.co/t/which-snmp-versions-are-supported-for-snmptrap-plugin/48281>\
**Category:** Logstash\
**Created:** [April 25, 2016, 8:31am UTC](https://discuss.elastic.co/t/which-snmp-versions-are-supported-for-snmptrap-plugin/48281 "2016-04-25T08:31:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattcrawfoord](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mattcrawfoord](https://discuss.elastic.co/u/mattcrawfoord)\
**Post date:** [April 25, 2016, 8:31am UTC](https://discuss.elastic.co/t/which-snmp-versions-are-supported-for-snmptrap-plugin/48281/1 "2016-04-25T08:31:23Z")

</div>

I’m trying logstash with snmptrap,  
The following log was generated .

> {  
> " #\< SNMP::SNMPv2\_Trap:0xc6fb838 @request\_id=19345, @error\_index=0, @error\_status=0,  
> @source\_ip="1.2.3.4", @varbind\_list=[#\<SNMP::VarBind:0x2c4c434d @name=[1.3.6.1.2.1.1.3.0], @value=#\<SNMP::TimeTicks:0x220bf58c @value=922846876\>\>, #\<SNMP::VarBind:0x53d4378d @name=[1.3.6.1.6.3.1.1.4.1.0], @value=[1.3.6.1.4.1.3607.2.20.0.2030]\>, #\<SNMP::VarBind:0x29e031c1 @name=[1.3.6.1.4.1.3607.2.10.10.20.0], @value="20160425202213S"\>, #\<SNMP::VarBind:0x67f8599b @name=[1.3.6.1.4.1.3607.2.10.30.20.1.80.1.2030], @value=#\<SNMP::Integer:0x1aa2777d @value=31\>\>, #\<SNMP::VarBind:0x68b843fb @name=[1.3.6.1.4.1.3607.2.10.30.20.1.20.1.2030], @value=#\<SNMP::Integer:0x407e1914 @value=10\>\>, #\<SNMP::VarBind:0x656fb401 @name=[1.3.6.1.4.1.3607.2.10.30.20.1.60.1.2030], @value=#\<SNMP::Integer:0x6c7f2e4e @value=1\>\>, #\<SNMP::VarBind:0x46720fa1 @name=[1.3.6.1.4.1.3607.2.10.30.20.1.30.1.2030], @value=#\<SNMP::Integer:0x76f408c2 @value=0\>\>, #\<SNMP::VarBind:0x6ea375a1 @name=[1.3.6.1.4.1.3607.2.10.30.20.1.40.1.2030], @value=#\<SNMP::Integer:0x7bbb3b65 @value=1\>\>, #\<SNMP::VarBind:0x2d622cb4 @name=[1.3.6.1.4.1.3607.2.10.30.20.1.50.1.2030], @value=#\<SNMP::Integer:0x7b0683c2 @value=0\>\>, #\<SNMP::VarBind:0xefdef7e @name=[1.3.6.1.4.1.3607.2.10.30.20.1.100.1.2030], @value="SYSTEM"\>, #\<SNMP::VarBind:0x2cbf9dd7 @name=[1.3.6.1.6.3.18.1.3.0], @value=#\<SNMP::IpAddress:0x10841378 @value="\xC0\xA8\v\x0F"\>\>]\>",  
> "@timestamp" =\> "2016-04-25T12:22:08.982Z",  
> "@version" =\> "1",  
> "source\_ip" =\> "1.2.3.4",  
> }

my configuration ,

```
input {
   snmptrap {
   type => "snmp_trap"
      }
}
output {
        stdout {
        codec => rubydebug
     }
 }

```

why the @version in output is 1 ?  
is it only v1 supported ?  
snmptrap plugin does not talk about which versions of SNMP are supported?

---

<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 25, 2016, 6:29pm UTC](https://discuss.elastic.co/t/which-snmp-versions-are-supported-for-snmptrap-plugin/48281/2 "2016-04-25T18:29:56Z")

</div>

> why the @version in output is 1 ?

That's unrelated to SNMP. It's the version number of the Logstash event schema.

---

<div class="post-metadata">

**Author:** ![maxheadroom](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@maxheadroom](https://discuss.elastic.co/u/maxheadroom)\
**Post date:** [January 5, 2017, 3:24pm UTC](https://discuss.elastic.co/t/which-snmp-versions-are-supported-for-snmptrap-plugin/48281/3 "2017-01-05T15:24:51Z")

</div>

> [@mattcrawfoord](#):
>
> SNMP::SNMPv2\_Trap

Yes, I would like to know too. The example you provided indicates SNMPV2 (probably v2c).

I would like for someone to say definitively if the snmptrap plugin supports SNMP **_V3_**.

---

<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, 4:29am UTC](https://discuss.elastic.co/t/which-snmp-versions-are-supported-for-snmptrap-plugin/48281/4 "2017-07-06T04:29:33Z")

</div>


