# Snmptrap throwing errors

**URL:** <https://discuss.elastic.co/t/snmptrap-throwing-errors/42571>\
**Category:** Logstash\
**Created:** [February 24, 2016, 9:42am UTC](https://discuss.elastic.co/t/snmptrap-throwing-errors/42571 "2016-02-24T09:42:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![massimo](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@massimo](https://discuss.elastic.co/u/massimo)\
**Post date:** [February 24, 2016, 9:42am UTC](https://discuss.elastic.co/t/snmptrap-throwing-errors/42571/1 "2016-02-24T09:42:17Z")

</div>

Hello,

I configured an input for receiving snmp traps. However non of them get stored in elasticsearch. When looking at the output of rubydebug errors showe up:

ailed action. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-prtrap-2016.02.24", :\_type=\>"prtrap", :\_routing=\>nil}, #\<LogStash::Event:0x261fae28 @metadata\_accessors=#\<LogStash::Util::Accessors:0x692a5f5f @store={}, @lut={}\>, @cancelled=false, @data={"message"=\>"#\<SNMP::SNMPv2\_Trap:0x1fc329e6 @request\_id=658842679, @error\_index=0, @error\_status=0.....  
...  
:response=\>{"create"=\>{"\_index"=\>"logstash-prtrap-2016.02.24", "\_type"=\>"prtrap", "\_id"=\>"AVMSmlv7r0d0YpfXvMzQ", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"Field name [RFC1065-SMI::enterprises.9.9.712.1.1.2.1.10.0] cannot contain '.'"}}}, :level=\>:warn}

logstash-2.2.0  
elasticsearch-2.2.0

Regards,  
massimo

---

<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:** [February 24, 2016, 9:50am UTC](https://discuss.elastic.co/t/snmptrap-throwing-errors/42571/2 "2016-02-24T09:50:27Z")

</div>

As of Elasticsearch 2.0, field names can't contain periods. Consider using the [de\_dot filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-de_dot.html).

---

<div class="post-metadata">

**Author:** ![massimo](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@massimo](https://discuss.elastic.co/u/massimo)\
**Post date:** [February 24, 2016, 12:21pm UTC](https://discuss.elastic.co/t/snmptrap-throwing-errors/42571/3 "2016-02-24T12:21:51Z")

</div>

Magnus, thank you. I was able to solve this by using the suggested filter.

---

<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:09am UTC](https://discuss.elastic.co/t/snmptrap-throwing-errors/42571/4 "2017-07-06T05:09:55Z")

</div>


