# Getting the max of the count by field for use on dashboard

**URL:** https://discuss.elastic.co/t/getting-the-max-of-the-count-by-field-for-use-on-dashboard/182937
**Category:** Kibana
**Created:** [May 27, 2019, 3:00pm UTC](https://discuss.elastic.co/t/getting-the-max-of-the-count-by-field-for-use-on-dashboard/182937 "2019-05-27T15:00:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nicks1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicks1993/32/84627_2.png) [@nicks1993](https://discuss.elastic.co/u/nicks1993)
#### Post date: [May 27, 2019, 3:00pm UTC](https://discuss.elastic.co/t/getting-the-max-of-the-count-by-field-for-use-on-dashboard/182937/1 "2019-05-27T15:00:18Z")

</div>

Here is what I'd like to do. I have my kibana logging by log level for example: warning, error, debug etc for each application running on the cluster.  
I'd like to get the application with the most error logs and display that on the dashboard as text or something similar. Is that possible? Do I have to make a scripted field for this?  
thanks

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [May 27, 2019, 4:24pm UTC](https://discuss.elastic.co/t/getting-the-max-of-the-count-by-field-for-use-on-dashboard/182937/2 "2019-05-27T16:24:58Z")

</div>

Hi,

You can chose an aggregation which can get the most error logs depending the field type and then use a filter or input controls to display what you want on the dashboard.

In this example are I created an area chart with histogram of time and terms of machine.os as my x-axis.

I added it to dashboard and filtered it on iOS.

 ![50%20PM](https://us1.discourse-cdn.com/elastic/original/3X/2/1/216bafe7402a83bd2ebc310e9ba14fcb19a6813a.png)

Hope this helps.

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![nicks1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicks1993/32/84627_2.png) [@nicks1993](https://discuss.elastic.co/u/nicks1993)
#### Post date: [May 27, 2019, 4:27pm UTC](https://discuss.elastic.co/t/getting-the-max-of-the-count-by-field-for-use-on-dashboard/182937/3 "2019-05-27T16:27:46Z")

</div>

Thanks for the reply

---

<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: [June 24, 2019, 4:27pm UTC](https://discuss.elastic.co/t/getting-the-max-of-the-count-by-field-for-use-on-dashboard/182937/4 "2019-06-24T16:27:47Z")

</div>

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