[英]View geospatial data on Kibana
In elasticsearch I memorized a series of documents having the following structure: 在elasticsearch中,我记忆了一系列具有以下结构的文档:
{
"_index": "logstash-2018.05.10",
"_type": "doc",
"_id": "VM-QSWMBq8te9tFe-bcj",
"_version": 1,
"_score": null,
"_source": {
"location": {
"lat": 42,
"lon": 12.5
},
"@timestamp": "2018-05-10T10:20:24.988Z",
"port": 53950,
"tags": [
"geoinfo"
],
"host": "gateway",
"@version": "1",
"message": "{\"@version\":1,\"level\":\"INFO\",\"logger_name\":\"it.test.elk.ELKTestApplication\",\"appName\":\"docker-elk-master\",\"thread_name\":\"main\",\"message\":\"LAT: 42, LON: 12.5\"}\r",
"type": "java"
},
"fields": {
"@timestamp": [
"2018-05-10T10:20:24.988Z"
]
},
"sort": [
1525947624988
]
}
The corresponding index is this (I only show a small part): 相应的索引是这个(我只显示一小部分):
{
"logstash-2018.05.10": {
"aliases": {},
"mappings": {
"doc": {
...
"properties": {
...
"geoip": {
"dynamic": "true",
"properties": {
"ip": {
"type": "ip"
},
"latitude": {
"type": "half_float"
},
"location": {
"type": "geo_point"
},
"longitude": {
"type": "half_float"
}
}
},
...
"location": {
"properties": {
"lat": {
"type": "float"
},
"lon": {
"type": "float"
}
}
},
...
}
}
},
...
}
}
}
On Kibana -> Coordinates Map, I tried to show the geospatial information contained in the location field, but nothing is seen. 在Kibana->坐标地图上,我尝试显示location字段中包含的地理空间信息,但是什么也看不到。 Maybe location should be a geo_point?
也许位置应该是geo_point?
Where am I wrong? 我哪里错了?
In the Discover view, if the field appears with a ? 在“发现”视图中,如果该字段显示为? next to it (or it doesn't have a globe next to it), it means that Kibana doesn't know it's a geo_point (even if Elasticsearch does).
在它旁边(或者它旁边没有地球),这意味着Kibana不知道它是geo_point(即使Elasticsearch知道)。 To fix that, you need to go into kibana index settings (for
logstash-*
) and hit the refresh button. 要解决此问题,您需要进入kibana索引设置(对于
logstash-*
),然后单击刷新按钮。
After you've hit reload, type location into the search box on the index definition screen and make sure it shows up as a geo_point
. 点击重新加载后,在索引定义屏幕上的搜索框中输入location,并确保其显示为
geo_point
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.