# Can I increase the maximum attachment size for ingestion?

**URL:** <https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119>\
**Category:** Elasticsearch\
**Created:** [October 7, 2017, 3:29pm UTC](https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119 "2017-10-07T15:29:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![warpraptor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warpraptor/32/10865_2.png) [@warpraptor](https://discuss.elastic.co/u/warpraptor)\
**Post date:** [October 7, 2017, 3:29pm UTC](https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119/1 "2017-10-07T15:29:11Z")

</div>

I'm indexing a collection of PDF documents. The ingestion Attachment processing pipeline is working fine, but there are a few of the documents that are rather large (because they contain images, etc.). This seems to run into an upper-limit on size that ES can handle.

- Is there a way to modify this size limitation for documents loaded via the attachments pipeline plugin?
- Is there a way to get the plugin to completely ignore images during processing?

Thanks in advance for any suggestions.

UPDATE:

```
Status Code = 413, 
Message = u'{"Message":"Request size exceeded 10485760 bytes"}'
```

---

<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:** [October 7, 2017, 4:17pm UTC](https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119/2 "2017-10-07T16:17:02Z")

</div>

Can you share the logs and the error message you are getting?

---

<div class="post-metadata">

**Author:** ![warpraptor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warpraptor/32/10865_2.png) [@warpraptor](https://discuss.elastic.co/u/warpraptor)\
**Post date:** [October 7, 2017, 4:52pm UTC](https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119/3 "2017-10-07T16:52:50Z")

</div>

See update above...

```
Status Code = 413, 
Message = u'{"Message":"Request size exceeded 10485760 bytes"
```

---

<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:** [October 7, 2017, 5:04pm UTC](https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119/4 "2017-10-07T17:04:59Z")

</div>

Have a look at content length here:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-http.html)

---

<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:** [November 4, 2017, 5:05pm UTC](https://discuss.elastic.co/t/can-i-increase-the-maximum-attachment-size-for-ingestion/103119/5 "2017-11-04T17:05:05Z")

</div>

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