# Importing datasets

**URL:** <https://discuss.elastic.co/t/importing-datasets/106681>\
**Category:** Elasticsearch\
**Created:** [November 7, 2017, 12:15pm UTC](https://discuss.elastic.co/t/importing-datasets/106681 "2017-11-07T12:15:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit\_sopra](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@arpit\_sopra](https://discuss.elastic.co/u/arpit_sopra)\
**Post date:** [November 7, 2017, 12:15pm UTC](https://discuss.elastic.co/t/importing-datasets/106681/1 "2017-11-07T12:15:12Z")

</div>

I have just started learning elasticsearch. Can someone please explain me these lines:

curl -H "Content-Type: application/json" -XPOST 'localhost:9200/bank/account/\_bulk?pretty&refresh' --data-binary "@accounts.json"  
curl 'localhost:9200/\_cat/indices?v'

These lines were on the link:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/\_exploring\_your\_data.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html)

I was working on the console in my browser.How should I write these lines,without using "curl", and what url should I mention for "accounts.json".

Thanks in advance...

---

<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:** [November 7, 2017, 1:09pm UTC](https://discuss.elastic.co/t/importing-datasets/106681/2 "2017-11-07T13:09:17Z")

</div>

> I was working on the console in my browser

What does it mean?  
What kind of console is that? Are you speaking about Kibana console?

If so, just copy and paste `curl -H "Content-Type: application/json" -XPOST 'localhost:9200/bank/account/_bulk?pretty&refresh'` in Kibana console. It will be automatically transformed to something like:

```auto
POST /bank/account/_bulk?pretty&refresh

```

Then just open the content of the `accounts.json` file in notepad or whatever text editor. Copy its content just after the `POST /bank/account/_bulk?pretty&refresh` line.

Then execute and you're done.

HTH

---

<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:** [December 5, 2017, 1:09pm UTC](https://discuss.elastic.co/t/importing-datasets/106681/3 "2017-12-05T13:09:17Z")

</div>

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