Grafana worldmap + elasticsearch中的错误

时间:2019-10-04 09:04:20

标签: grafana

我想使用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

0 个答案:

没有答案