# Will Elasticsearch reject documents based on document size?

**URL:** <https://discuss.elastic.co/t/will-elasticsearch-reject-documents-based-on-document-size/131591>\
**Category:** Elasticsearch\
**Created:** [May 12, 2018, 8:34pm UTC](https://discuss.elastic.co/t/will-elasticsearch-reject-documents-based-on-document-size/131591 "2018-05-12T20:34:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [May 12, 2018, 8:34pm UTC](https://discuss.elastic.co/t/will-elasticsearch-reject-documents-based-on-document-size/131591/1 "2018-05-12T20:34:32Z")

</div>

Hi,

Will Elasticsearch reject or drop documents if document size is too large? I am ingesting documents using logstash but I don’t see any error logs in Logstash or Elasticsearch.

How do I know if Elasticsearch rejects any documents?

---

<div class="post-metadata">

**Author:** ![Johnnycc1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnnycc1/32/26069_2.png) [@Johnnycc1](https://discuss.elastic.co/u/Johnnycc1)\
**Post date:** [May 14, 2018, 10:53pm UTC](https://discuss.elastic.co/t/will-elasticsearch-reject-documents-based-on-document-size/131591/2 "2018-05-14T22:53:58Z")

</div>

Hey Amruth, simple answer -- if documents are being rejected you should get messages in the logs.

Root cause - if you have "missing" documents in elasticsearch its generally cause of mapping conflicts. E.g. you are POSTing in a document that has text in a date field.

If you do have super large fields you can set the ignore above parameter for your text fields - so it will not fail when the field is to large - as explained here --\> [https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-above.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-above.html)

The best thing to do is to just try to manually post the missing reports into elastic using the dev\_tools tab in Kibana or via curl. If it failed you will get a pretty good error message that will lead you down the right track.

---

<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:** [June 11, 2018, 10:54pm UTC](https://discuss.elastic.co/t/will-elasticsearch-reject-documents-based-on-document-size/131591/3 "2018-06-11T22:54:11Z")

</div>

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