Skip to content

Instantly share code, notes, and snippets.

@sohangp sohangp/createParent.sh
Last active Nov 5, 2019

Embed
What would you like to do?
Creating Parent Data
curl -X PUT 'http://localhost:9200/family_tree/_doc/1?routing=Darren' \
-H 'content-type: application/json' \
-d '{
"firstName":"Darren",
"lastName":"Ford",
"gender":"Male",
"isAlive":false,
"relation_type":{
"name":"parent"
}
}'
curl -X PUT 'http://localhost:9200/family_tree/_doc/2?routing=Sienna' -H 'content-type: application/json' \
-d '{
"firstName":"Sienna",
"lastName":"Evans",
"gender":"Female",
"isAlive":false,
"relation_type":{
"name":"parent"
}
}'
curl -X PUT 'http://localhost:9200/family_tree/_doc/3?routing=Ryan' -H 'content-type: application/json' \
-d '{
"firstName":"Ryan",
"lastName":"Turner",
"gender":"Male",
"isAlive":false,
"relation_type":{
"name":"parent"
}
}'
@pbc3199

This comment has been minimized.

Copy link

pbc3199 commented Nov 5, 2019

Hi, how to convert to logstash command if the json data is from rabbitmq queue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.