# ES and Kibana 5.2.2 how to use timelion to view data size ingestion per day

**URL:** https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564
**Category:** Kibana
**Tags:** timelion
**Created:** [August 23, 2019, 4:45pm UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564 "2019-08-23T16:45:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rbendik](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rbendik](https://discuss.elastic.co/u/rbendik)
#### Post date: [August 23, 2019, 4:45pm UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/1 "2019-08-23T16:45:18Z")

</div>

Hi all, Is there a way for me to visualize in Timelion the actual data size of the total indexes being ingested per day?

.es(index=app\_log\*) shows total count. In the legend I see 'q:\* \> count'

Can someone please provide a sample query? I see references to store.size and pri.store.size but how do I use that in the query field in Timelion.

Help would be greatly appreciated. Is there a tutorial of some kind for the various types of queries I can run?

Version (yes its old): 5.2.2.

Thanks

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [August 23, 2019, 7:15pm UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/2 "2019-08-23T19:15:58Z")

</div>

Hi, I don't think it is possible to get the disk size of indices ingested per day, as that's not a piece of information stored anywhere. As you mentioned, it is possible to track the count of documents rising over time.

If you really need this information, one way I could think of doing this is by creating a script that checks [\_cat/indices](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html) that runs at midnight everyday and creates a new document in a index that could be called `indices_stats`. Of course, to get the _increase_ in size of the indices per day, you will need to subtract the previous day's size. Then you can use `indices_stats` to visualize the size of your indices over time.

---

<div class="post-metadata">

### Author: ![rbendik](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rbendik](https://discuss.elastic.co/u/rbendik)
#### Post date: [August 23, 2019, 10:22pm UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/3 "2019-08-23T22:22:01Z")

</div>

Hi Jen,

hm...ok thanks for this info. Appreciate the quick response.

Thanks!

---

<div class="post-metadata">

### Author: ![rbendik](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rbendik](https://discuss.elastic.co/u/rbendik)
#### Post date: [August 23, 2019, 11:50pm UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/4 "2019-08-23T23:50:30Z")

</div>

Hi, I have been looking into this further, and found that ES does in fact track index sizes.

GET /\_cat/indices?v&h=i,tm&s=tm:desc

is there a way to graph this? so far I have been unsuccessful. I cant figure out where to even add metrics under visualization or timelion.

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [August 24, 2019, 12:02am UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/5 "2019-08-24T00:02:46Z")

</div>

Hi, sorry - that is what I was getting at. That API endpoint will retrieve the _current_ size on disk, but it is not _tracked through time_. The history is not persisted anywhere. Visualizations and Timelion works from data stored in your ES indices only.

That's why my suggestion was to create a custom script that indexes data from that endpoint periodically, so that you are able to track the size through an ES index.

---

<div class="post-metadata">

### Author: ![rbendik](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rbendik](https://discuss.elastic.co/u/rbendik)
#### Post date: [August 24, 2019, 12:28am UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/6 "2019-08-24T00:28:39Z")

</div>

Hi Jen... I see got it, thanks for clarifying!

---

<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: [September 21, 2019, 12:37am UTC](https://discuss.elastic.co/t/es-and-kibana-5-2-2-how-to-use-timelion-to-view-data-size-ingestion-per-day/196564/7 "2019-09-21T00:37:03Z")

</div>

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