【问题标题】:Nested Object in Kibana visualizeKibana 中的嵌套对象可视化
【发布时间】:2015-08-19 08:08:17
【问题描述】:

我已在 elasticsearch 中上传 JSON 文件,我的映射包含一些嵌套对象。

问题是,在 Kibana 中,我无法看到它们

这是我的映射:

"comments": {
    "type": "nested",
    "properties": {
        "count": {
            "type": "integer"
        },
        "data": {
            "type":"nested",
            "properties": {
                "created_time": {
                    "type": "integer"
                }
            }
        }
    }
}

但是在 kibana 中插入 cmets.count 时看不到任何结果,但是在发现页面中,存在 cmets.count 字段!

如何搜索此字段?

【问题讨论】:

    标签: elasticsearch kibana kibana-4


    【解决方案1】:

    我发现,Kibana 无法处理 nestedparent/child

    【讨论】:

      【解决方案2】:

      在 Kibana 中没有本地方式来执行嵌套查询或嵌套聚合。

      我有一个正在进行的分叉来实现这种支持。我处于反馈和错误修复阶段。请参阅此处的讨论:

      https://github.com/elastic/kibana/issues/1084

      叉子在这里: https://github.com/homeaway/kibana/tree/fullNestedSupport

      【讨论】:

      【解决方案3】:

      GitHub 问题中的一个人能够得到结果。

      这是跟踪此功能增强的 GitHub 问题:https://github.com/elastic/kibana/issues/1084

      其他人已经去亲子关系解决了。 https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child.html

      【讨论】:

        【解决方案4】:

        拆分响应的解决方案。 Logstash 必须拆分响应。因此使用https://www.elastic.co/guide/en/logstash/current/plugins-filters-split.html 中提到的拆分过滤器。它对我有用。

        【讨论】:

          【解决方案5】:

          在 Kibana 支持之前,您可以在嵌套字段的映射中使用 include_in_parent 标志作为解决方法。

          请参阅此link,了解更多详情。

          【讨论】:

            猜你喜欢
            • 2019-08-25
            • 1970-01-01
            • 2023-03-03
            • 2016-02-29
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2020-04-04
            • 1970-01-01
            相关资源
            最近更新 更多