代码之家  ›  专栏  ›  技术社区  ›  Ikbel

Kibana中不可见的字段

  •  1
  • Ikbel  · 技术社区  · 7 年前

    没有显示结果,因为所有值都等于0。

    这是“发现”选项卡中的数据: Discover Tab

    result

    **index mappings:*
    
    
     {
          "mapping": {
            "httpbeat": {
              "_meta": {
                "version": "5.2.1"
                  },
        ..........
          "response": {
                      .....
                    "headers": {
                      "type": "nested",
                      "properties": {
                        "Content-Type": {
                          "type": "keyword",
                          "ignore_above": 1024
                        },
                        "Date": {
                          "type": "keyword",
                          "ignore_above": 1024
                        },
                        "X-Application-Context": {
                          "type": "keyword",
                          "ignore_above": 1024
                        }
                      }
                    },
                    "jsonBody": {
                      "type": "nested",
                      "properties": {
                        "classes": {
                          "type": "long"
                        },
                        "classes_loaded": {
                          "type": "long"
                        },
                        "classes_unloaded": {
                          "type": "long"
                        },
                        "counter_status_200_health": {
                          "type": "long"
                        },
                        "counter_status_200_login": {
                          "type": "long"
                        },
                        "counter_status_200_metrics": {
                          "type": "long"
                        },
                        "counter_status_302_unmapped": {
                          "type": "long"
                        },
                        "gauge_response_health": {
                          "type": "long"
                        }, ..}
    

    需要帮忙吗?

    Kibana索引模式: enter image description here

    2 回复  |  直到 5 年前
        1
  •  1
  •   kahveci    7 年前

    简单地说,错误消息表明没有显示任何关于聚合、度量、时间范围等的内容。因此,即使elasticsearch上存在文档,也无法在可视化视图上绘制它们。为了解决这个问题:

    • 设置一个合适的度量以及返回一些结果的正确时间范围
        2
  •  0
  •   Ikbel    7 年前

    [解决方案] 我找到了一个解决方案,事实上httpbeat5.6.x不能与kibana一起工作,只支持httpbeatv4.1.0!因此,要可视化数据,必须更改httpbeat的版本(另一个版本提供嵌套的json文档,kibana不支持嵌套字段)

    推荐文章