# Make bulk request without a JSON file

**URL:** <https://discuss.elastic.co/t/make-bulk-request-without-a-json-file/136591>\
**Category:** Elasticsearch\
**Created:** [June 20, 2018, 2:09am UTC](https://discuss.elastic.co/t/make-bulk-request-without-a-json-file/136591 "2018-06-20T02:09:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anna10](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@anna10](https://discuss.elastic.co/u/anna10)\
**Post date:** [June 20, 2018, 2:09am UTC](https://discuss.elastic.co/t/make-bulk-request-without-a-json-file/136591/1 "2018-06-20T02:09:13Z")

</div>

Is there any way to make a POST to the bulk API without formatting the data in a json file? I am receiving my data as a stream and it is not being saved in a json file anywhere for me to import.

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [June 20, 2018, 3:04am UTC](https://discuss.elastic.co/t/make-bulk-request-without-a-json-file/136591/2 "2018-06-20T03:04:29Z")

</div>

> [@anna10](#):
>
> I am receiving my data as a stream

Are you working with a programming language?

---

<div class="post-metadata">

**Author:** ![anna10](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@anna10](https://discuss.elastic.co/u/anna10)\
**Post date:** [June 20, 2018, 3:29am UTC](https://discuss.elastic.co/t/make-bulk-request-without-a-json-file/136591/3 "2018-06-20T03:29:05Z")

</div>

Yes, I'm working with Java.

---

<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 18, 2018, 3:29am UTC](https://discuss.elastic.co/t/make-bulk-request-without-a-json-file/136591/4 "2018-07-18T03:29:18Z")

</div>

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