# Creating a difference list in Kibana

**URL:** <https://discuss.elastic.co/t/creating-a-difference-list-in-kibana/199167>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [September 12, 2019, 4:15am UTC](https://discuss.elastic.co/t/creating-a-difference-list-in-kibana/199167 "2019-09-12T04:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunpmohan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arunpmohan/32/69467_2.png) [@arunpmohan](https://discuss.elastic.co/u/arunpmohan)\
**Post date:** [September 12, 2019, 4:15am UTC](https://discuss.elastic.co/t/creating-a-difference-list-in-kibana/199167/1 "2019-09-12T04:15:02Z")

</div>

I am shipping the data from, say 10 devices using Filebeat to an index ,say data-devices  
Suppose the data format is as below from each device  
{  
"message": "log message goes here",  
"device" : "device-01"  
}  
Assuming that now data is flowing from every device, when I do an aggregation on the "device" field on the index, I will get the list of all the 10 devices.

But, if two devices goes down (let us say device-04 and device-06 went down, or stopepd shipping logs for some reason),the same aggregation will result in the list containing 8 devices.

What I need here is to show the missing devices list in Kibana, as a table or any thing. How can this be done?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [September 12, 2019, 3:15pm UTC](https://discuss.elastic.co/t/creating-a-difference-list-in-kibana/199167/2 "2019-09-12T15:15:54Z")

</div>

Hmm, I can't think of a way to accomplish this today, but you can get fairly close.

You could create a "filters" aggregation, and have one filter for each device ("device-04", "device-03", etc.) and then you could sort by the count column. Instead of only seeing devices that _aren't_ sending data, you'll still see all of your devices, but at least you'll know the ones with a count of 0 are the ones that are down.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c1b111c47a6d3ce938cd77e593b61dd888f22b30.png)

---

<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:** [October 10, 2019, 3:15pm UTC](https://discuss.elastic.co/t/creating-a-difference-list-in-kibana/199167/3 "2019-10-10T15:15:54Z")

</div>

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