我试图查看任何类型的地图在Kibana我GeoJSON的。 我的原始数据是一个具有坐标数组的地理多边形。 从我的理解,ElasticSearch/Kibana不能想像的地理形状,所以我想作一个点一个GeoPoint,这样我可以在tilemap的查看。地理点kibana elasticsearch没有出现在tilemap的
这可能吗?我试图创建一对不同的映射。我最新的一个不会让我索引数据。任何更好的方法? (在理想的世界中,我可以绘制一个多边形......尽管我不认为Kibana支持这个)。我使用的版本5.3
原始数据(替换用长实际值和LAT):
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[long,lat],
[long,lat],
[long,lat],
[long,lat],
[long,lat]
]
]
},
这是映射elasticsearch默认为我的索引我的JSON:
{
"indexname" : {
"mappings" : {
"my_type" : {
"properties" : {
"geometry" : {
"properties" : {
"coordinates" : {
"type" : "float"
},
"type" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
},
这是我只是试图修复映射(企图然而,这种方法没有考虑到任何索引的数据:
curl -XPUT "http://localhost:9200/indexname" -d "{\"mappings\" : {\"my_type\" : {\"properties\" : {\"geometry\" : {\"type\":\"geo_point\"}}}}}"
如果我试试这个命令它显示在kibana,但是当我尝试运行tilemap的,地图就会消失,所以我假设它是没有得到正确的数据:
curl -XPUT "http://localhost:9200/indexname" -d "{\"mappings\" : {\"my_type\" : {\"properties\" : {\"coordinates\" : {\"type\":\"geo_point\"}}}}}"
编辑
没有成功。我试过了:
kibana-plugin install file:///kibana-5.3.0-windows-x86/kibana-5.3.0-windows-x86/plugins/enhanced-tilemap-v2017-03-17-5.2。 2/kibana/enhanced_tilemap
Attempting to transfer from file:///kibana-5.3.0-windows-x86/kibana-5.3.0-windows-x86/plugins/enhanced-tilemap-v2017-03-17-5.2.2/kibana/enhanced_tilemap
Transferring unknown number of bytes
Error: EISDIR: illegal operation on a directory, read
Plugin installation was unsuccessful due to error "EISDIR: illegal operation on a directory, read"
kibana,插件安装http://artifacts.elastic.co/downloads/kibana-plugins/enhanced_tilemap/enhanced_tilemap-5.2.2.zip
Attempting to transfer from http://artifacts.elastic.co/downloads/kibana-plugins/enhanced_tilemap/enhanced_tilemap-5.2.2.zip
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/http://artifacts.elastic.co/downloads/kibana-plugins/enhanced_tilemap/enhanced_tilemap-5.2.2.zip/http://artifacts.elastic.co/downloads/kibana-plugins/enhanced_tilemap/enhanced_tilemap-5.2.2.zip-5.3.0.zip
Plugin installation was unsuccessful due to error "No valid url specified."
关于如何安装任何想法。我在Windows cmd上的任何命令都无法为此工作。 – user6754289
在键入命令之前,您需要cd到kibana主目录,您是否这样做?你得到了哪个错误? – Lax
我在bin目录下。我应该在插件目录中还是只在kibana主页上? – user6754289