# Manage error when indexing documents

**URL:** <https://discuss.elastic.co/t/manage-error-when-indexing-documents/292168>\
**Category:** Elasticsearch\
**Created:** [December 16, 2021, 2:15pm UTC](https://discuss.elastic.co/t/manage-error-when-indexing-documents/292168 "2021-12-16T14:15:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GinkoLucas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginkolucas/32/107055_2.png) [@GinkoLucas](https://discuss.elastic.co/u/GinkoLucas)\
**Post date:** [December 16, 2021, 2:15pm UTC](https://discuss.elastic.co/t/manage-error-when-indexing-documents/292168/1 "2021-12-16T14:15:16Z")

</div>

Hello,  
I want to know when a document is dismiss by Elasticsearch in case the mapping is configured with "dynamic : strict".  
So, when i send a document who got an "unknow fields" in the mapping, Elasticsearch will dismiss him. How can i do for knowing that ? (without the api answer).  
Is there a way with ingest pipeline, to ingest my malformed document in an other index ? (a special index, in wich they are just errors)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 20, 2021, 1:04am UTC](https://discuss.elastic.co/t/manage-error-when-indexing-documents/292168/2 "2021-12-20T01:04:46Z")

</div>

Your client will receive an error that you need to process.

How are you sending the data to Elasticsearch now?

---

<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 17, 2022, 1:05am UTC](https://discuss.elastic.co/t/manage-error-when-indexing-documents/292168/3 "2022-01-17T01:05:07Z")

</div>

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