Elasticsearch - Kibana - Group By and Count

主宰稳场 提交于 2019-12-11 04:39:38

问题


i basically have this dataset:

userid: 123456 content: Lorem ispum

userid: 123456 content: Lorem ispum

userid: 123456 content: Lorem ispum

userid: 1234567 content: Lorem ispum

userid: 1234567 content: Lorem ispum

userid: 12345678 content: Lorem ispum

What i want to see:

How many users have one entry?, two entries?, three entries? etc.

I already know how i can see "How many entries" per user but i want the inverse...

Anybody could help me with this issue? Thanks and Greetings!


回答1:


You can create a pie chart visualisation, split the chart by user and then add a sub-bucket and then split it by the entry (assuming the entry is an aggregatable field).



来源:https://stackoverflow.com/questions/45586342/elasticsearch-kibana-group-by-and-count

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