# Error: Could not index event to Elasticsearch

**URL:** <https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240>\
**Category:** Elasticsearch\
**Created:** [April 22, 2020, 11:17am UTC](https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240 "2020-04-22T11:17:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thywoe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thywoe/32/65941_2.png) [@thywoe](https://discuss.elastic.co/u/thywoe)\
**Post date:** [April 22, 2020, 11:17am UTC](https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240/1 "2020-04-22T11:17:03Z")

</div>

```auto
Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"rencore-2020.04.22", :routing=>nil, :_type=>"_doc"}, #<LogStash::Event:0x6325d5c0>], :response=>{"index"=>{"_index"=>"rencore-2020.04.22", "_type"=>"_doc", "_id"=>"1NqFoXEBtOBq7OZs9Lnh", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [response] of type [text] in document with id '1NqFoXEBtOBq7OZs9Lnh'

```

I have two different log patterns in my log file and the "response" field in string in one and object in the other log pattern.  
Please I need help. Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 22, 2020, 11:34am UTC](https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240/2 "2020-04-22T11:34:24Z")

</div>

We can't tell without seeing what has been sent to elasticsearch.  
There's something wrong in your message field. That's probably the only thing we can tell.

---

<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:** [May 20, 2020, 11:34am UTC](https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240/3 "2020-05-20T11:34:29Z")

</div>

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