Created
February 13, 2018 00:58
-
-
Save denmerc/d5c67a41f1e958eceb66732222673910 to your computer and use it in GitHub Desktop.
Bulk elastic loading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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