Skip to content

Instantly share code, notes, and snippets.

@denmerc
Created February 13, 2018 00:58
Show Gist options
  • Save denmerc/d5c67a41f1e958eceb66732222673910 to your computer and use it in GitHub Desktop.
Save denmerc/d5c67a41f1e958eceb66732222673910 to your computer and use it in GitHub Desktop.
Bulk elastic loading
# new line json
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_build?pretty' --data-binary @accounts.json
# in kibana
GET _cat/indices
GET bank
# setting data type mappings
PUT /logstash-2015.05.05
{
"mappings": {
"log": {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment