1
在ElasticSearch中,我有一些示例數據,我希望在Kibana 4中可視化折線圖。ElasticSearch中的示例如下所示:如何在Kibana中根據列值而不是列名創建折線圖
"_id": "AVhNy_dxcW7axK5BvIEO",
"timeStamp": "2016-11-11T05:39:10.5844951Z",
"analyticSource": [
{
"analyticId": "A",
"analyticUnit": "sec",
"analyticValue": 0.22743704915046692
},
{
"analyticId": "B",
"analyticUnit": "sec",
"analyticValue": 0.14946113526821136
}]
和另一個樣品:
"_id": "AVhNxnjscW7axK5Bu-Tl",
"timeStamp": "2016-11-11T05:40:10.5954951Z",
"analyticSource": [
{
"analyticId": "A",
"analyticUnit": "sec",
"analyticValue": 0.20143736898899078
},
{
"analyticId": "B",
"analyticUnit": "sec",
"analyticValue": 0.09747125953435898
}]
現在Kibana根據列Id和在這種情況下,單線圖表,繪製用於analyticValue
只是情節的情節。我真正想要的是在Kibana繪製2條折線圖A
和B
而不是timestamp
。有沒有某種腳本(查詢),或者我可以告訴kibana根據analyticId
分段analyticValue
?