Hi! I´m trying to ingest a .csv with geo_shapes as linestrings. Though I keep getting parse exceptions. Have tries to search and to read the documentation, but no progress so I put my faith in you now
Even though I occasionally succeed to transfer the data to Elasticsearch with Logstash, Kibana won't recognize it as a geo_shape... any suggestions?
Geo_shape in input.csv below: [[lon, lat],[lon, lat]]
[[-74.0446, 40.6899],[-74.0416, 40.6996]]
Logstash.conf
input {
file { path => ["D:/input.csv"]
start_position => beginning
sincedb_path => "D:/Logstash/logs/last_value_csv.log"
}
}
filter {
csv { separator => ","
columns => [ "lineprojection" ]
convert => { "[lineprojection]" => "float" }
}
mutate { remove_field => [ "message" ]
}
}
output {
elasticsearch {
hosts => "localhost:9200"
action => "index"
manage_template => true
document_id => "%{timestamp}"
index => "lines"
template => "D:/template.json"
template_name => "template"
}
stdout { codec => rubydebug
}
}
Template
{
"order": 0,
"index_patterns": [ "lines*" ],
"settings": {
"index" : {
"lifecycle" : {
"name" : "lines-policy",
"rollover_alias" : "lines"
},
"number_of_shards" : "1",
"number_of_replicas" : "0"
}
},
"mappings": {
"properties": {
"lineprojection": {
"type": "geo_shape"
}
}
}
}