# How to find disk space usage of logs returned by query

**URL:** https://discuss.elastic.co/t/how-to-find-disk-space-usage-of-logs-returned-by-query/279220
**Category:** Elasticsearch
**Created:** [July 21, 2021, 3:47am UTC](https://discuss.elastic.co/t/how-to-find-disk-space-usage-of-logs-returned-by-query/279220 "2021-07-21T03:47:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jteare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jteare/32/88989_2.png) [@jteare](https://discuss.elastic.co/u/jteare)
#### Post date: [July 21, 2021, 3:47am UTC](https://discuss.elastic.co/t/how-to-find-disk-space-usage-of-logs-returned-by-query/279220/1 "2021-07-21T03:47:52Z")

</div>

I am attempting to determine storage requirements for logging various systems. It's convenient when all logs for the system in question are going into one index e.g. all firewall logs going into a firewall index, I can just look at the daily index size and say firewall logs are ~x GB/day.

What I have not figured out is how to tell e.g. daily size of linux system logs sent to a shared index (e.g. shared with application logs).

e.g. questions like average daily disk usage within elasticsearch per host of /var/log/messages and /var/log/secure

Is there some way to query something like that, or would you need to run a query, count the documents and multiply by some "guesstimated average size of log message" factor?

I do not have the entire fleet going in, just some subset. We are negotiating with elastic currently and need to produce some sizing data for cost estimates.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 26, 2021, 12:29am UTC](https://discuss.elastic.co/t/how-to-find-disk-space-usage-of-logs-returned-by-query/279220/2 "2021-07-26T00:29:05Z")

</div>

You need to enable this plugin [Mapper Size Plugin | Elasticsearch Plugins and Integrations [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size.html).

---

<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 23, 2021, 12:29am UTC](https://discuss.elastic.co/t/how-to-find-disk-space-usage-of-logs-returned-by-query/279220/3 "2021-08-23T00:29:55Z")

</div>

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