Why is my curl not working properly?

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' -H "Content-Type: application/json" -d "{ "message": "$f1" }"
done < eksportmasterproduk.csv

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 :slight_smile:

sir the problem has been solved, thank you sir

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