# Bulk API doesn't do anything but passes command

**URL:** <https://discuss.elastic.co/t/bulk-api-doesnt-do-anything-but-passes-command/118487>\
**Category:** Elasticsearch\
**Created:** [February 5, 2018, 4:01pm UTC](https://discuss.elastic.co/t/bulk-api-doesnt-do-anything-but-passes-command/118487 "2018-02-05T16:01:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomak](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@tomak](https://discuss.elastic.co/u/tomak)\
**Post date:** [February 5, 2018, 4:01pm UTC](https://discuss.elastic.co/t/bulk-api-doesnt-do-anything-but-passes-command/118487/1 "2018-02-05T16:01:29Z")

</div>

So I would like to add a JSON document using the bulk API.

In terminal I use the command:

```
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/some_index/keyword/_bulk?pretty' --data-binary @ComparisonRequestTest.json

```

each entry in the JSON file is like this:

```
{"index":{"_id":"52287a4ee4b07193f703c23f"}}
{"className":"someClass","consumerType":"residential","electricityRequest":{"consumptionDayValue":"600"}

```

when I do the command, no errors and no messages, the terminal goes to the next prompt immediately. However, my file is 70MB so I don't think that it can realistically go so fast. Indeed, in Kibana the index is not created.

PS: If I do the same command on a smaller file, it works. So Maybe there is a limit to the size we can download.

---

<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:** [February 5, 2018, 4:13pm UTC](https://discuss.elastic.co/t/bulk-api-doesnt-do-anything-but-passes-command/118487/2 "2018-02-05T16:13:14Z")

</div>

Yes there are some limits.  
You should split the load into small bulks.

---

<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 5, 2018, 4:13pm UTC](https://discuss.elastic.co/t/bulk-api-doesnt-do-anything-but-passes-command/118487/3 "2018-03-05T16:13:59Z")

</div>

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