How to plot aggregated data in kibana

放肆的年华 提交于 2019-12-25 07:21:36

问题


I'm a newbie to kibana. I have following data stored in ES:

{
"_index": "test",
"_type": "impressions",
"_id": "AVZ4QLgkLqvQLIzbvF4e",
"_version": 1,
"_score": 1,
"_source": {
    "campaign_id": "1011",
    "count": 691,
    "played_dt": "2016-01-02"
  }
}

So, basically I have counts per campaign_id which is already aggregated data. I want a simple bar chart which plots counts per campaign_id where X axis is campaign_id and Y axis is it's count.

I'm getting hits for that specific campaign_id as unique count rather than the actual value in count field. Thanks in advance!


回答1:


Go to "Visualize" tab, select "Vertical bar chart":

Choose new search and select appropriate index. Now you probably want to visualize your data in time. So, on X axis use "Date histogram" and select your time filed (played_dt).

Now you can use e.g. "Split bars", use splitting by terms and select campaign_id field.



来源:https://stackoverflow.com/questions/38889409/how-to-plot-aggregated-data-in-kibana

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!