# Kibana bulk index from a Json file

**URL:** <https://discuss.elastic.co/t/kibana-bulk-index-from-a-json-file/87054>\
**Category:** Kibana\
**Created:** [May 25, 2017, 12:29am UTC](https://discuss.elastic.co/t/kibana-bulk-index-from-a-json-file/87054 "2017-05-25T00:29:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hirad\_Khakipour](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Hirad\_Khakipour](https://discuss.elastic.co/u/Hirad_Khakipour)\
**Post date:** [May 25, 2017, 12:29am UTC](https://discuss.elastic.co/t/kibana-bulk-index-from-a-json-file/87054/1 "2017-05-25T00:29:21Z")

</div>

I'm trying to index a json file using the bulk API. From the terminal I can easily do:  
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/\_bulk?pretty' --data-binary @logs.json

What's the syntax to do the same using kibana Console? I tried:  
POST /\_bulk?pretty --data-binary @[absolute path to logs.json]

But it gave me a null pointer exception.

I'm really new to ES and Kibana, so any help would be appreciated.

---

<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:** [May 25, 2017, 1:33am UTC](https://discuss.elastic.co/t/kibana-bulk-index-from-a-json-file/87054/2 "2017-05-25T01:33:21Z")

</div>

You cannot do that in Console as you cannot pull in files in that manner unfortunately.

---

<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:** [June 22, 2017, 1:33am UTC](https://discuss.elastic.co/t/kibana-bulk-index-from-a-json-file/87054/3 "2017-06-22T01:33:22Z")

</div>

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