Kibana度量可视化-获取内部点击数
这是我获取内部点击数的代码Kibana度量可视化-获取内部点击数,kibana,Kibana,这是我获取内部点击数的代码 GET my_index/_search { "_source": [ "inner_hits" ], "query": { "nested": { "path": "someNestedKey
GET my_index/_search
{
"_source": [
"inner_hits"
],
"query": {
"nested": {
"path": "someNestedKey",
"query": {
"bool": {
"must": [
{
"exists": {
"field": "someNestedKey.key1"
}
}
]
}
},
"inner_hits": {}
}
}
}
这给了我以下的答复
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 2,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "my_index",
"_type" : "_doc",
"_id" : "someid",
"_score" : 1.0,
"_source" : { },
"inner_hits" : {
"my_nested_field" : {
"hits" : {
"total" : {
**"value" : 5,**
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [{Removed the data}
]
}
}
}
},
{
"_index" : "my_index",
"_type" : "_doc",
"_id" : "someid",
"_score" : 1.0,
"_source" : { },
"inner_hits" : {
"my_nested_field" : {
"hits" : {
"total" : {
**"value" : 4,**
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{Removed the data}
]
}
}
}
}
]
}
}
如果您选中粗体突出显示的部分(值:5和值:4),我基本上需要得到总计数,即5+4=9,并将其显示在Kibana的度量可视化中。我不太清楚怎么做