# How can I find the documents causing error messages?

**URL:** <https://discuss.elastic.co/t/how-can-i-find-the-documents-causing-error-messages/113022>\
**Category:** Logstash\
**Created:** [December 22, 2017, 3:20pm UTC](https://discuss.elastic.co/t/how-can-i-find-the-documents-causing-error-messages/113022 "2017-12-22T15:20:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Post date:** [December 22, 2017, 3:20pm UTC](https://discuss.elastic.co/t/how-can-i-find-the-documents-causing-error-messages/113022/1 "2017-12-22T15:20:14Z")

</div>

I'm seeing this error in my Logstash logs:

`[2017-12-22T15:16:21,203][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"my-index-2017-09", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x55937ff0>], :response=>{"index"=>{"_index"=>"my-index-2017-09", "_type"=>"doc", "_id"=>"L4fLfmAB04tAcouP6XEn", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [ip] tried to parse field [ip] as object, but found a concrete value"}}}}`

I'm not sure how to find the actual raw data of the document it's trying to index though. I can't search Elasticsearch for it since the document doesn't exist in Elasticsearch since it hasn't been indexed. I also don't see any info that can tell me which document this error came from.

Any help would be appreciated. Thanks

---

<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:** [December 22, 2017, 3:25pm UTC](https://discuss.elastic.co/t/how-can-i-find-the-documents-causing-error-messages/113022/2 "2017-12-22T15:25:21Z")

</div>

The dead letter queue feature should be useful.

---

<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:** [January 19, 2018, 3:25pm UTC](https://discuss.elastic.co/t/how-can-i-find-the-documents-causing-error-messages/113022/3 "2018-01-19T15:25:25Z")

</div>

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