I have a nested field geopoint which contains an array of geopoints like this :
The problem that I can't see these 3 geo_points on kibana
here is my template:
"properties" : {
"@timestamp": { "type": "date", "include_in_all": false },
"@version": { "type": "keyword", "include_in_all": false },
"geoip" : {
"type" : "geo_point"
},
"geoip_Dev": {
"type" : "geo_point"
},
"geoip_gwy": {
"type" : "geo_point"
},
"gtwys":{
"type": "nested",
"properties": {
"position": {"type": "geo_point"},
"position1": {"type": "geo_point"}
}
}
}
and here is my logstash conf
json {
source => "message"
}
ruby {
code => '
gateways_size = event.get("[gateways]").size
gateways_size.times do |index|
event.set("[gtwys][#{index}][position][lat]", event.get("[gateways][#{index}][antennaLatitude]").to_f)
event.set("[gtwys][#{index}][position][lon]", event.get("[gateways][#{index}][antennaLongitude]").to_f)
#event.set("[gtwys][position][lat]", event.get("[gateways][#{index}][antennaLatitude]").to_f)
#event.set("[gtwys][position][lon]", event.get("[gateways][#{index}][antennaLongitude]").to_f)
end
'
}