小编Kev*_*vin的帖子

在kibana面板中使用嵌套字段

我试图显示一个Kibana仪表板,它运作良好.不幸的是,当我想添加一个包含公司位置国家的饼图(或其他表示)时,我有一个空面板.

我可以使用kibana查询来过滤特定国家/地区,但我无法显示带有嵌套文档的面板.

我的映射(我必须使用嵌套字段,因为公司可以有多个位置):

{
  "settings" : {
    "number_of_shards" : 1
  },
  "mappings": {
    "company" : {
      "properties" : {
        "name" : { "type" : "string", "store" : "yes" },
        "website" : { "type" : "string", "store" : "yes" },
        "employees" : { "type" : "string", "store" : "yes" },
        "type": { "type" : "string", "store" : "yes" },
        "locations" : {
          "type" : "nested",
          "properties" : {
            "city" : { "type" : "string", "store" : "yes" },
            "country" : { …
Run Code Online (Sandbox Code Playgroud)

elasticsearch kibana

7
推荐指数
1
解决办法
3131
查看次数

标签 统计

elasticsearch ×1

kibana ×1