# ElasticSearch Marvel - how to load sample data from .json file

**URL:** <https://discuss.elastic.co/t/elasticsearch-marvel-how-to-load-sample-data-from-json-file/20237>\
**Category:** Elasticsearch\
**Created:** [October 14, 2014, 11:45am UTC](https://discuss.elastic.co/t/elasticsearch-marvel-how-to-load-sample-data-from-json-file/20237 "2014-10-14T11:45:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Kumar\_Maddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_kumar_maddi/32/1209_2.png) [@Ravi\_Kumar\_Maddi](https://discuss.elastic.co/u/Ravi_Kumar_Maddi)\
**Post date:** [October 14, 2014, 11:45am UTC](https://discuss.elastic.co/t/elasticsearch-marvel-how-to-load-sample-data-from-json-file/20237/1 "2014-10-14T11:45:44Z")

</div>

I am practising elasticsearch(ES) and using Marvel plugin to run my queries.

I see the query in ES documentation to load data from a .json file but,

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/\_exploring\_your\_data.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_exploring_your_data.html)

curl -XPOST 'localhost:9200/bank/account/\_bulk?pretty' --data-binary @accounts.json

this is the command for linux users. But how to run same command from Marvel

I copied the accounts.json file to elasticsearh/bin folder and I tried  
multiple ways

POST /bank/account/\_bulk?pretty accounts.json

but it giving error. Need your help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/656fd77c-913f-40a7-a21f-fdad7096bd87%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/656fd77c-913f-40a7-a21f-fdad7096bd87%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alexandre\_Rafalovitc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandre_rafalovitc/32/1124_2.png) [@Alexandre\_Rafalovitc](https://discuss.elastic.co/u/Alexandre_Rafalovitc)\
**Post date:** [October 14, 2014, 2:09pm UTC](https://discuss.elastic.co/t/elasticsearch-marvel-how-to-load-sample-data-from-json-file/20237/2 "2014-10-14T14:09:46Z")

</div>

The bulk end point uses a different - flattened - JSON layout. So, you  
cannot just use that example directly.

But it's also not clear exactly what you are trying to do? If you look  
at the Guide (not just reference), it gives complete Mavel/Sense  
examples including once that load into your local Sense UI. That  
should make it clear what you need to do.

Regards,  
Alex.  
Personal: [http://www.outerthoughts.com/](http://www.outerthoughts.com/) and @arafalov  
Solr resources and newsletter: [http://www.solr-start.com/](http://www.solr-start.com/) and @solrstart  
Solr popularizers community: [Sign Up | LinkedIn](https://www.linkedin.com/groups?gid=6713853)

On 14 October 2014 07:45, Ravi Kumar Maddi [ravi.maddi@gmail.com](mailto:ravi.maddi@gmail.com) wrote:

> I am practising elasticsearch(ES) and using Marvel plugin to run my queries.
> 
> I see the query in ES documentation to load data from a .json file but,
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_exploring_your_data.html)
> 
> curl -XPOST 'localhost:9200/bank/account/\_bulk?pretty' --data-binary  
> @accounts.json
> 
> this is the command for linux users. But how to run same command from Marvel
> 
> I copied the accounts.json file to elasticsearh/bin folder and I tried  
> multiple ways
> 
> POST /bank/account/\_bulk?pretty accounts.json
> 
> but it giving error. Need your help.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/656fd77c-913f-40a7-a21f-fdad7096bd87%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/656fd77c-913f-40a7-a21f-fdad7096bd87%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEFAe-FAan\_b6GXoqCHAMnkYZ0ynkeAfSasnvo\_JO9c5sOuUVw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEFAe-FAan_b6GXoqCHAMnkYZ0ynkeAfSasnvo_JO9c5sOuUVw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:56am UTC](https://discuss.elastic.co/t/elasticsearch-marvel-how-to-load-sample-data-from-json-file/20237/3 "2017-07-06T00:56:20Z")

</div>


