# Bulk index is not indexing last operation

**URL:** <https://discuss.elastic.co/t/bulk-index-is-not-indexing-last-operation/55898>\
**Category:** Elasticsearch\
**Created:** [July 19, 2016, 3:45pm UTC](https://discuss.elastic.co/t/bulk-index-is-not-indexing-last-operation/55898 "2016-07-19T15:45:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_suh/32/10638_2.png) [@Steve\_Suh](https://discuss.elastic.co/u/Steve_Suh)\
**Post date:** [July 19, 2016, 3:45pm UTC](https://discuss.elastic.co/t/bulk-index-is-not-indexing-last-operation/55898/1 "2016-07-19T15:45:44Z")

</div>

I'm on ElasticSearch 2.3.1 on OS X. I'm just showing the input and output for 10 but I've duplicated it at 100 and 1000 index operations as well.

Input: last index id is 42721014

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/b63de301a344005be73e127383c0f32a3c75b46c.png)

Output: last index id is 42721013  
{"took"=\>1,  
"errors"=\>false,  
"items"=\>  
[{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721005",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721006",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721007",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721008",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721009",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721010",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721011",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>"42721012",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}},  
{"index"=\>  
{"\_index"=\>"roots\_index0",  
"\_type"=\>"root",  
"\_id"=\>" **42721013**",  
"\_version"=\>1,  
"\_shards"=\>{"total"=\>2, "successful"=\>1, "failed"=\>0},  
"status"=\>201}}]}

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [July 19, 2016, 3:51pm UTC](https://discuss.elastic.co/t/bulk-index-is-not-indexing-last-operation/55898/2 "2016-07-19T15:51:51Z")

</div>

Does the last line end with a `\n`? Could you post somewhere the actual file that you are trying to process?

---

<div class="post-metadata">

**Author:** ![Steve\_Suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_suh/32/10638_2.png) [@Steve\_Suh](https://discuss.elastic.co/u/Steve_Suh)\
**Post date:** [July 19, 2016, 3:53pm UTC](https://discuss.elastic.co/t/bulk-index-is-not-indexing-last-operation/55898/3 "2016-07-19T15:53:32Z")

</div>

ah that was it ☹

---

<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:** [July 5, 2017, 10:34pm UTC](https://discuss.elastic.co/t/bulk-index-is-not-indexing-last-operation/55898/4 "2017-07-05T22:34:21Z")

</div>


