来自不同领域的 Kibana 饼图
Kibana pie chart from different fields
我有一个日志的数据,如下:
{
"_index": "XXXXX",
"_type": "XXXXX",
"_id": "XXXXX",
"_score": null,
"_source": {
......
"@timestamp": "2016-07-14T08:57:07.971Z",
"ServerId": "4dc8-b7fa-8bcf319",
"PacketsTotal": 173,
"PacketsSuccess": 173,
"PacketsFailed": 0,
"FramesTotal": 4148,
"FramesSuccess": 4145,
"FramesFailed": 3,
"DurationSeconds": 56
},
"fields": {
"StartTime": [
...
],
"@timestamp": [
...
],
"EndTime": [
...
],
"CreateDate": [
...
],
"LastUpdateDate": [
...
]
},
"sort": [
...
]
}
现在我想创建一个饼图来可视化数据包和帧,其中图表的切片将是 PacketsSuccess、PacketsFailed、FramesSuccess、FramesSuccess。这可行吗?如果是,怎么做?
非常感谢。
就目前而言,Kibana 并不是那样工作的,因为它希望从单个字段的桶中创建馅饼。然而,我提出了这个问题:https://github.com/elastic/kibana/issues/8143
我有一个日志的数据,如下:
{
"_index": "XXXXX",
"_type": "XXXXX",
"_id": "XXXXX",
"_score": null,
"_source": {
......
"@timestamp": "2016-07-14T08:57:07.971Z",
"ServerId": "4dc8-b7fa-8bcf319",
"PacketsTotal": 173,
"PacketsSuccess": 173,
"PacketsFailed": 0,
"FramesTotal": 4148,
"FramesSuccess": 4145,
"FramesFailed": 3,
"DurationSeconds": 56
},
"fields": {
"StartTime": [
...
],
"@timestamp": [
...
],
"EndTime": [
...
],
"CreateDate": [
...
],
"LastUpdateDate": [
...
]
},
"sort": [
...
]
}
现在我想创建一个饼图来可视化数据包和帧,其中图表的切片将是 PacketsSuccess、PacketsFailed、FramesSuccess、FramesSuccess。这可行吗?如果是,怎么做?
非常感谢。
就目前而言,Kibana 并不是那样工作的,因为它希望从单个字段的桶中创建馅饼。然而,我提出了这个问题:https://github.com/elastic/kibana/issues/8143