why I am getting this Exception to upload the Data into elastic search....? can anyone tell the reason and solution for this please...
curl -XPUT 'localhost:9200/abcfile11?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"log": {
"properties":
{
"name": {"type": "keyword"}
"id": {"type": "integer"}
}
}
}
}
'
It got success but below code is rising problem
anil@anil-OptiPlex-390:~/ANIL$ curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/a2/log/_bulk?pretty' --data-binary @abcfile11.jsonl
Warning: Couldn't read data from file "abcfile11.jsonl", this makes an empty
Warning: POST.
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "request body is required"
}
],
"type" : "parse_exception",
"reason" : "request body is required"
},
"status" : 400
}
thanks in Advance!...