# Why is my curl not working properly?

**URL:** <https://discuss.elastic.co/t/why-is-my-curl-not-working-properly/176827>\
**Category:** Elasticsearch\
**Created:** [April 15, 2019, 4:37am UTC](https://discuss.elastic.co/t/why-is-my-curl-not-working-properly/176827 "2019-04-15T04:37:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ridwan\_Syarifudin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ridwan_syarifudin/32/44111_2.png) [@Ridwan\_Syarifudin](https://discuss.elastic.co/u/Ridwan_Syarifudin)\
**Post date:** [April 15, 2019, 4:37am UTC](https://discuss.elastic.co/t/why-is-my-curl-not-working-properly/176827/1 "2019-04-15T04:37:54Z")

</div>

please help me, i think i got my pipelines and template correctly build but my curl its not working at all

my template:  
`PUT _template/product_template`  
{  
"index\_patterns": [  
"master\_product\*"  
],  
"settings": {  
"number\_of\_shards": 1  
},  
"mappings": {  
"message": {  
"properties": {  
"id\_product": {  
"type": "integer"  
},  
"code\_product": {  
"type": "keyword"  
},  
"name\_product": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"satuan\_product": {  
"type": "text"  
},  
"merek\_vehicle": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"jenis\_vehicle": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"merek\_product": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"part\_number": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"weight": {  
"type": "float"  
},  
"unit\_weight": {  
"type": "text"  
}  
}  
}  
}  
}

my pipelines:  
PUT \_ingest/pipeline/parse\_master\_produk\_pipeline  
{  
"description": "parsing master produk indexing",  
"processors": [  
{  
"grok": {  
"field": "message",  
"patterns": [  
"'%{NUMBER:id\_product}';'%{DATA:code\_product}';'%{DATA:name\_product}';'%{DATA:satuan\_product}';'%{DATA:merek\_vehicle}';'%{DATA:jenis\_vehicle}';'%{DATA:merek\_product}';'%{DATA:part\_number}';'%{NUMBER:weight}';'%{DATA:unit\_weight}'"  
]  
}  
},  
{  
"remove": {  
"field": "message"  
}  
}  
]  
}

my curl command:  
while read f1  
do curl -XPOST [http://localhost:9200/master\_product\_info/message?pipeline=parse\_master\_produk\_pipeline](http://localhost:9200/master_product_info/message?pipeline=parse_master_produk_pipeline)' -H "Content-Type: application/json" -d "{ "message": "$f1" }"  
done \< eksportmasterproduk.csv

---

<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:** [April 15, 2019, 9:41pm UTC](https://discuss.elastic.co/t/why-is-my-curl-not-working-properly/176827/2 "2019-04-15T21:41:13Z")

</div>

> [@Ridwan\_Syarifudin](#):
>
> my curl its not working at all

Is there an error? What is it?

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

---

<div class="post-metadata">

**Author:** ![Ridwan\_Syarifudin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ridwan_syarifudin/32/44111_2.png) [@Ridwan\_Syarifudin](https://discuss.elastic.co/u/Ridwan_Syarifudin)\
**Post date:** [April 16, 2019, 2:31am UTC](https://discuss.elastic.co/t/why-is-my-curl-not-working-properly/176827/3 "2019-04-16T02:31:07Z")

</div>

sir the problem has been solved, thank you sir

---

<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:** [May 14, 2019, 2:31am UTC](https://discuss.elastic.co/t/why-is-my-curl-not-working-properly/176827/4 "2019-05-14T02:31:07Z")

</div>

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