# Kibana Dashboard

**URL:** <https://discuss.elastic.co/t/kibana-dashboard/311047>\
**Category:** Kibana\
**Created:** [July 30, 2022, 10:18pm UTC](https://discuss.elastic.co/t/kibana-dashboard/311047 "2022-07-30T22:18:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Bindra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahil_bindra/32/109001_2.png) [@Sahil\_Bindra](https://discuss.elastic.co/u/Sahil_Bindra)\
**Post date:** [July 30, 2022, 10:18pm UTC](https://discuss.elastic.co/t/kibana-dashboard/311047/1 "2022-07-30T22:18:17Z")

</div>

Hi,  
I have a log like this:

User content\_id  
ankur 879fdd7979  
mohak 4345grg66  
havel 1224asa34  
ankur 98089rtf6  
sonam 2134ssded245  
tunnu 843juy566  
ankur 225cc865  
havel 09744qqw67  
sonam 234mmk566

I want the visualization as:  
no. of user in x-axis  
no. of content id watched in y-axis (irrespective of content id data)

Like this:

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/641b6b9315d1bb5e2688e20c8dbe54c57301a461.png)

meaning:  
1 users watched 3 content  
2 users watched 2 content  
2 users watched 1 content

I hope you understand what I am trying to say. I really need a help in this. Would appreciate your support.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [July 31, 2022, 5:01am UTC](https://discuss.elastic.co/t/kibana-dashboard/311047/2 "2022-07-31T05:01:35Z")

</div>

Two options:

1. Create Aggregation based Line,select your index, set a time range, in Bucket, Add X-axis, select Terms aggregations, select user or user.keyword field, change Size 5 to top 10 or any value you want, click Update. In Metric &Axes, turn off Show line and you will get dots.

2. Use Lens, select index name, set a time range, drag and drop, horizontal axis uses, vertical axis count "content id", change Bar vertical to Line. To change top 5 to any number, click on Horizontal axis, change number in Number of values

---

<div class="post-metadata">

**Author:** ![Sahil\_Bindra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahil_bindra/32/109001_2.png) [@Sahil\_Bindra](https://discuss.elastic.co/u/Sahil_Bindra)\
**Post date:** [July 31, 2022, 6:01am UTC](https://discuss.elastic.co/t/kibana-dashboard/311047/3 "2022-07-31T06:01:59Z")

</div>

Thank you for your efforts and time,

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/2/624c270a7ff46b27f5414755130648f580e872fe.png)

I am getting this. But I want **no. of users** in x-axis, not the **user name.**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 28, 2022, 6:02am UTC](https://discuss.elastic.co/t/kibana-dashboard/311047/4 "2022-08-28T06:02:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
