# How to install bulk data into elasticsearch via curl

**URL:** <https://discuss.elastic.co/t/how-to-install-bulk-data-into-elasticsearch-via-curl/204590>\
**Category:** Elasticsearch\
**Created:** [October 22, 2019, 7:13am UTC](https://discuss.elastic.co/t/how-to-install-bulk-data-into-elasticsearch-via-curl/204590 "2019-10-22T07:13:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sukhen](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@Sukhen](https://discuss.elastic.co/u/Sukhen)\
**Post date:** [October 22, 2019, 7:13am UTC](https://discuss.elastic.co/t/how-to-install-bulk-data-into-elasticsearch-via-curl/204590/1 "2019-10-22T07:13:03Z")

</div>

How to a upload a bulk data to elastic search via curl..

---

<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:** [October 22, 2019, 7:35am UTC](https://discuss.elastic.co/t/how-to-install-bulk-data-into-elasticsearch-via-curl/204590/2 "2019-10-22T07:35:35Z")

</div>

you have a full example here: [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)

```auto
curl -X POST "localhost:9200/_bulk?pretty" -H 'Content-Type: application/json' -d'
{ "index" : { "_index" : "test", "_id" : "1" } }
{ "field1" : "value1" }
{ "delete" : { "_index" : "test", "_id" : "2" } }
{ "create" : { "_index" : "test", "_id" : "3" } }
{ "field1" : "value3" }
{ "update" : {"_id" : "1", "_index" : "test"} }
{ "doc" : {"field2" : "value2"} }
'

```

---

<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:** [November 19, 2019, 7:35am UTC](https://discuss.elastic.co/t/how-to-install-bulk-data-into-elasticsearch-via-curl/204590/3 "2019-11-19T07:35:36Z")

</div>

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