- Choose your CSV file to import including your coordinates data and upload it
location.csv
lat,long, timestamp
41.12,-71.34,1569476964
38.85896,-106.01665,1569476964
65.47629,18.61576,1569476964
- Click on import and go to the Advanced tab
- Set the mapping
{
" timestamp": {
"type": "date",
"format": "epoch_second"
},
"@timestamp": {
"type": "date"
},
"経度": {
"type": "long"
},
"緯度": {
"type": "long"
},
"location": {
"type": "geo_point"
}
}
- Define the ingest pipeline (to set location geo_point)
{
"description" : "sets location geo_point with lat, lon",
"processors": [{
"set": {
"field": "location",
"value": "{{lat}}, {{lon}}"
}
}]
}
- Import
@shkazmi89
Error parsing mappings: Unexpected string in JSON at position 254
looks like a JSON parsing issue.