# How to display Differential data

**URL:** https://discuss.elastic.co/t/how-to-display-differential-data/209241
**Category:** Kibana
**Created:** [November 25, 2019, 8:05am UTC](https://discuss.elastic.co/t/how-to-display-differential-data/209241 "2019-11-25T08:05:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nakar-kashi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nakar-kashi/32/74374_2.png) [@nakar-kashi](https://discuss.elastic.co/u/nakar-kashi)
#### Post date: [November 25, 2019, 8:05am UTC](https://discuss.elastic.co/t/how-to-display-differential-data/209241/1 "2019-11-25T08:05:42Z")

</div>

【Prerequisites】  
・There are hundreds of servers  
・The disk size for each server has already been acquired

【What i want to realize】  
・Get the disk size difference between the previous day and the current day  
・Display top10 of servers with large (increased) differences among acquired differences

【environment】  
KIBANA:Version: 6.6.1

Perhaps it is necessary to realize timelion, but I can not find a valid writing method

---

<div class="post-metadata">

### Author: ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)
#### Post date: [November 25, 2019, 7:26pm UTC](https://discuss.elastic.co/t/how-to-display-differential-data/209241/2 "2019-11-25T19:26:20Z")

</div>

Hi @nakar-kashi. Perhaps you can do this with bucket script aggregations in TSVB. Here's an example screenshot where I've calculated the minimum and maximum value of a field then subtracted to get the difference.

 ![Screenshot_2019-11-25%20Differential%20-%20Kibana](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d31c7a4ba1f9870df6d1d35e565815a111029143.png)

---

<div class="post-metadata">

### Author: ![nakar-kashi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nakar-kashi/32/74374_2.png) [@nakar-kashi](https://discuss.elastic.co/u/nakar-kashi)
#### Post date: [November 26, 2019, 1:48am UTC](https://discuss.elastic.co/t/how-to-display-differential-data/209241/3 "2019-11-26T01:48:14Z")

</div>

Hi,@nickpeihl.

Thank you for answering.  
Sorry for the missing information.I can get the difference with your answer.

The disk size is taken once every day for each server, and I want to obtain the difference from the previous day on the same server  
Therefore, it is necessary to access the data one day ago.  
I think that timeshift is necessary for realization, but can it be realized with Bucket Script?  
Furthermore, I want to display top10 with a large difference in disk size

for example(For top3 display)

Octorber 1  
serverA:100GB  
serverB:200GB  
serverC:150GB  
serverD:300GB  
serverE:400GB  
serverF:320GB  
serverG:800GB

Octorber 2  
serverA:180GB  
serverB:210GB  
serverC:110GB  
serverD:390GB  
serverE:600GB  
serverF:320GB  
serverG:650GB

DISPLAY  
ServerE 200GB  
ServerD:90GB  
ServerA:80GB

---

<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: [December 24, 2019, 1:48am UTC](https://discuss.elastic.co/t/how-to-display-differential-data/209241/4 "2019-12-24T01:48:20Z")

</div>

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