Hi there,
I have an ELK stack running correctly without geo data.
I started to add a new kind of data with geo data and unfortunately I can not visualize any data.
- Logstash receives data from filebeat (data source is a log file)
- I created a new template for ES on logstash side
- I was able to add a new index pattern in Kibana and my "location" field appears as "geo_point" type
- I can see data in the discover section and the location field contains correct values
- In visualize section, the only possible choice in Aggregation is 'Geohash' and the field contains the location value but I only get a "no results found" message instead of the tile map.
Versions
Logstash 2.1.3
Kibana 4.3.0
ES 2.1.0
Logstash filter
mutate {
add_field => {
"[location][lat]" => "%{lat}"
"[location][lon]" => "%{lon}"
}
}
mutate {
convert => {
"[location][lat]" => "float"
"[location][lon]" => "float"
}
}
Template definition
{
"template":"elk-xxx-status-geo-*",
"settings":{
"index.refreshinterval":"5s"
},
"mappings": {
"elk-xxx": {
"properties" : {
"location" : {
"type" : "geo_point"
}
}
}
}
}
Here is an event in ES (displayed through Kibana)
{
"_index": "elk-xxx-status-geo-2016.05.26",
"_type": "xxx-msg-status",
"_id": "AVTtoVu0MqnIx4T11oGX",
"_score": null,
"_source": {
"message": ""26/05/16-17:14:01 RSP-G UPDATE 47.5611 -1.1867"",
"@version": "1",
"@timestamp": "2016-05-26T15:14:08.450Z",
"beat": {
"hostname": "elk-yyy",
"name": "elk-yyy"
},
"count": 1,
"fields": null,
"input_type": "log",
"offset": 210417,
"source": "/var/log/xxx/filebeat-input-status.log",
"type": "xxx-msg-status",
"host": "elk-yyy",
"tags": [
"beats_input_codec_plain_applied"
],
"msgdate": "26/05/16-17:14:01",
"device": "RSP-G",
"status": "UPDATE",
"lat": "47.5611",
"lon": "-1.1867",
"msgtype": "status",
"location": {
"lat": 47.5611,
"lon": -1.1867
}
},
"fields": {
"@timestamp": [
1464275648450
]
},
"sort": [
1464275648450
]
}