Guest User

Untitled

a guest
Feb 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # new line json
  2. curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_build?pretty' --data-binary @accounts.json
  3.  
  4. # in kibana
  5. GET _cat/indices
  6. GET bank
  7.  
  8. # setting data type mappings
  9.  
  10. PUT /logstash-2015.05.05
  11. {
  12. "mappings": {
  13. "log": {
  14. "properties": {
  15. "geo": {
  16. "properties": {
  17. "coordinates": {
  18. "type": "geo_point"
  19. }
  20. }
  21. }
  22. }
  23. }
  24. }
  25. }
Add Comment
Please, Sign In to add comment