elasticsearch - geopoint kibana elasticsearch没有出现在tilemap上

标签 elasticsearch kibana

我正在尝试在Kibana中的任何 map 上查看我的geojson。
我的原始数据是具有坐标数组的地理多边形。
根据我的理解,ElasticSearch / Kibana无法可视化地理形状,因此我试图将一个坐标作为一个地理点,以便可以在tilemap上查看它。

这可能吗?我试图创建几个不同的映射。我最近的一个不会让我为其索引数据。有更好的方法吗? (在理想世界中,我可以绘制多边形...尽管我不认为Kibana支持该多边形)。我正在使用5.3版

原始数据(用long和lat代替实际值):

{
    "geometry": {
        "type": "Polygon",
        "coordinates": [
            [
                [long,lat],
                [long,lat],
                [long,lat],
                [long,lat],
                [long,lat]
            ]
        ]
    },

这是我索引json时默认映射到的Elasticsearch:
{
  "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时, map 就会消失,因此我假设它没有获取正确的数据:
curl -XPUT "http://localhost:9200/indexname" -d "{\"mappings\" : {\"my_type\" : {\"properties\" : {\"coordinates\" : {\"type\":\"geo_point\"}}}}}"

编辑

没有成功我试过了:

kibana-plugin安装文件:///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-plugin安装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."

最佳答案

下一个kibana plugin允许您可视化多边形。

如果使用kibana 5.3,则插件安装不支持5.2以上的安装操作
您可以执行以下操作之一:

1)在插件github中打开问题

2)克隆插件,将zip文件解压缩到插件目录vin kibana主页,
cd到您下载的插件,然后键入bower install,重新启动kibana

关于elasticsearch - geopoint kibana elasticsearch没有出现在tilemap上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43399011/

相关文章:

elasticsearch - 从Kibana删除可视化

python - 通过elasticsearch_dsl使用 “must_not exists”

elasticsearch - 在Elasticsearch中组合过滤器和查询

elasticsearch - 如何在Elasticsearch中按小时无天分组文档?

azure - 使用 AKS 时如何修复 "Kibana server is not ready yet"错误

azure - 如何向 Azure 托管的 Elastic Search 添加更多节点

mysql - 使用 Elasticsearch/Logstash/Kibana 的数据库 SQL

Elasticsearch 如何从字符串中删除前导零

indexing - 处理现有字段类型的更改?

php - 如何为Elasticsearch索引标准化的SQL数据库