# Logstash unable to input into Elasticsearch

**URL:** https://discuss.elastic.co/t/logstash-unable-to-input-into-elasticsearch/121013
**Category:** Logstash
**Created:** [February 22, 2018, 9:03am UTC](https://discuss.elastic.co/t/logstash-unable-to-input-into-elasticsearch/121013 "2018-02-22T09:03:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![petegriggs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petegriggs/32/84177_2.png) [@petegriggs](https://discuss.elastic.co/u/petegriggs)
#### Post date: [February 22, 2018, 9:03am UTC](https://discuss.elastic.co/t/logstash-unable-to-input-into-elasticsearch/121013/1 "2018-02-22T09:03:03Z")

</div>

Hi,

Just upgraded to Elasticsearch and Logstash 6.2.0, everything was going well however logstash now can't put data in to elasticsearch. We are using this for IDS traffic the error we are getting is:

[2018-02-21T14:11:35,508][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-2018.02.14", :\_type=\>"doc", :\_routing=\>nil}, #LogStash::Event:0x7b67818b], :response=\>{"index"=\>{"\_index"=\>"logstash-2018.02.14", "\_type"=\>"doc", "\_id"=\>nil, "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"Failed to parse mapping [default]: No handler for type [string] declared on field [@version]", "caused\_by"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"No handler for type [string] declared on field [@version]"}}}}}

I am guessing we need to change @version to be text, I suspect its using the logstash default template but I'll be damned if I can find it.

Any help greatly appreciated.

Thanks  
Pete.

---

<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: [March 22, 2018, 9:03am UTC](https://discuss.elastic.co/t/logstash-unable-to-input-into-elasticsearch/121013/2 "2018-03-22T09:03:28Z")

</div>

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