Grafana世界地图中的错误+ elasticsearch

问题描述 投票:0回答:1

我想使用Grafana世界地图来显示来自elasticsearch的点。相同的数据可以在Kibana地图中显示,没有任何问题。

但是在Grafana中,它仅显示“数据错误TypeError:无法读取未定义的属性'forEach'”。请帮助。

ES文档类似于:

{
  "_index": "accidents",
  "_type": "_doc",
  "_id": "3Bxh-2wBV9NAwagirP8u",
  "_version": 1,
  "_score": null,
  "_source": {
    "Address": ", PLACE DU BRESIL",
    "Zip code": null,
    "fullAddress": ", PLACE DU BRESIL, 75017 Paris",
    "Dept": "75",
    "Vehicle 1": "RESPONSIBLE",
    "Vehicle 3 Description": null,
    "Person 4 Status": null,
    "Address2": "AVENUE DE WAGRAM",
    "Com": "117",
    "Person 3 Cat": "Pass",
    "timestamp": "31/12/2013 22:50",
    "Hour": "22:50",
    "Address1": ", PLACE DU BRESIL, 75017 Paris",
    "Vehicle 1 description": "Car",
    "Vehicle 2 Description": "Car",
    "Segment": null,
    "Person 2 Tag": "VICTIM",
    "@version": "1",
    "@timestamp": "2013-12-31T21:50:00.000Z",
    "path": "/home/kkuei/Learning-Kibana-5/Chapter 3/source/accidentology.csv",
    "Person 1 Status": "Safe",
    "Person 2 Status": "Safe",
    "Person 3 Tag": "VICTIM",
    "involvedCount": "2",
    "Vehicle 2": "VICTIM",
    "location": {
      "lon": "2.343505",
      "lat": "48.8178287"
    },
    "Corner": "1_75117_2705",
    "season": "winter",
    "Person 3 Status": "Injured",
    "Person Tag": "RESPONSIBLE",
    "Person 1 Category": "Cond",
    "Vehicle 3": null,
    "message": "31/12/2013 22:50,31/12/2013,22:50,75,117,\", PLACE DU BRESIL\",,1_75117_2705,,\", PLACE DU BRESIL, 75017 Paris\",AVENUE DE WAGRAM,Car,RESPONSIBLE,Car,VICTIM,,,Cond,Safe,RESPONSIBLE,Cond,Safe,VICTIM,Pass,Injured,VICTIM,,,,\", PLACE DU BRESIL, 75017 Paris\",48.8178287,2.343505,winter,2,evening",
    "Date": "31/12/2013",
    "Person 4 Cat": null,
    "periodOfDay": "evening",
    "host": "kkuei-Sabre-17KV8",
    "Person 4 Tag": null,
    "Person 2 Category": "Cond"
  },
  "fields": {
    "@timestamp": [
      "2013-12-31T21:50:00.000Z"
    ]
  },
  "sort": [
    1388526600000
  ]
}

enter image description here

enter image description here

grafana
1个回答
0
投票

所以我也遇到这个问题。我也在Reddit中问过。我会同时跟踪,希望我们能回答。我还遇到了基于ElasticSearch原始文档的表的问题。我认为它们是相关的。

Reddit:https://www.reddit.com/r/grafana/comments/descaw/updates_to_elasticsearch_and_grafana_broke_my/

© www.soinside.com 2019 - 2024. All rights reserved.