# Bulk Insert Error Logging

**URL:** <https://discuss.elastic.co/t/bulk-insert-error-logging/119383>\
**Category:** Elasticsearch\
**Created:** [February 11, 2018, 6:21pm UTC](https://discuss.elastic.co/t/bulk-insert-error-logging/119383 "2018-02-11T18:21:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krmathieu](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@krmathieu](https://discuss.elastic.co/u/krmathieu)\
**Post date:** [February 11, 2018, 6:21pm UTC](https://discuss.elastic.co/t/bulk-insert-error-logging/119383/1 "2018-02-11T18:21:41Z")

</div>

I am using the bulk insert end point to insert batches of 1000 records into Elasticsearch and everything is working as expected. However, I am getting at least some individual errors for some of the index statements and my question is, if I have say 7 records in a group of 1000 that throw an error because of a malformed date in the same field, is it a true statement that Elasticsearch will only write the error out to the log one time? That is, I won't see log entries for all 7 malformed dates? I understand that I can iterate over the bulk response to look for the specific records that failed, but I really don't need to know that right now, I just need to know at a higher level what errors are occurring so I can fix the data. Just want to make sure I understand all that correctly. Thanks.

Kevin

---

<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:** [March 11, 2018, 6:22pm UTC](https://discuss.elastic.co/t/bulk-insert-error-logging/119383/2 "2018-03-11T18:22:15Z")

</div>

Closed on March 11, 2018, 6:22pm UTC

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