# Mapper\_parsing\_exception string

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-string/157739>\
**Category:** Logstash\
**Created:** [November 21, 2018, 4:02pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739 "2018-11-21T16:02:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)\
**Post date:** [November 21, 2018, 4:02pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739/1 "2018-11-21T16:02:30Z")

</div>

I use logstash 6.5.0 and elasticsearch 6.4.2

When I try to index some events this is the result:

> [2018-11-21T16:27:55,156][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>"2rPQbSfTngR4Lx/RYseLhwhkMSdDSW/GFxErZoYPoG8=", :\_index=\>"blue-test", :\_type=\>"doc", :\_routing=\>nil}, #LogStash::Event:0xa1cd6dd], :response=\>{"index"=\>{"\_index"=\>"blue-test", "\_type"=\>"doc", "\_id"=\>"2rPQbSfTngR4Lx/RYseLhwhkMSdDSW/GFxErZoYPoG8=", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to find type parsed [string] for [type]"}}}}

What I have do to solve it?

---

<div class="post-metadata">

**Author:** ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)\
**Post date:** [November 23, 2018, 8:29am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739/2 "2018-11-23T08:29:58Z")

</div>

I used an old template for elasticsearch and I thought that this is the issue. I deleted the template but at the same time the issue is still there.

---

<div class="post-metadata">

**Author:** ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)\
**Post date:** [November 26, 2018, 3:33pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739/3 "2018-11-26T15:33:16Z")

</div>

I didn't solved yet.  
Any help?

---

<div class="post-metadata">

**Author:** ![Eniqmatic](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Eniqmatic](https://discuss.elastic.co/u/Eniqmatic)\
**Post date:** [November 26, 2018, 3:35pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739/4 "2018-11-26T15:35:23Z")

</div>

Please post your full config

---

<div class="post-metadata">

**Author:** ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)\
**Post date:** [November 28, 2018, 2:48pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739/5 "2018-11-28T14:48:03Z")

</div>

Thanks Eniqmatic.  
I solved with this changes:

> **[Elasticsearch replaces string type with two new types text and keyword.](https://www.elastic.co/blog/strings-are-dead-long-live-strings)**
>
> On using text types for full text search and keyword type for keyword search in Elasticsearch 5.0.

---

<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:** [December 26, 2018, 2:58pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-string/157739/6 "2018-12-26T14:58:26Z")

</div>

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