# /\_cat/indices size not matching actual size on disk?

**URL:** <https://discuss.elastic.co/t/cat-indices-size-not-matching-actual-size-on-disk/125808>\
**Category:** Elasticsearch\
**Created:** [March 27, 2018, 8:12pm UTC](https://discuss.elastic.co/t/cat-indices-size-not-matching-actual-size-on-disk/125808 "2018-03-27T20:12:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fassisrosa](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@fassisrosa](https://discuss.elastic.co/u/fassisrosa)\
**Post date:** [March 27, 2018, 8:12pm UTC](https://discuss.elastic.co/t/cat-indices-size-not-matching-actual-size-on-disk/125808/1 "2018-03-27T20:12:04Z")

</div>

Hi there,

I was trying to use /\_cat/indices to estimate total index disk usage:

```
GET /_cat/indices?format=json
[
  {
    "health": "yellow",
    "status": "open",
    "index": "size218",
    "uuid": "vHM0hvdWQbmk2ZOhRwpLkg",
    "pri": "5",
    "rep": "1",
    "docs.count": "10000",
    "docs.deleted": "0",
    "store.size": "66.8mb",
    "pri.store.size": "66.8mb"
  }
]

```

Now when I go to the file system and measure I get:

```
du -h /opt/elasticsearch-6.2.2/data/nodes/0/indices
21M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/2/translog
8.0K /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/2/_state
14M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/2/index
35M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/2
21M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/0/translog
8.0K /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/0/_state
14M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/0/index
35M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/0
8.0K /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/_state
20M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/3/translog
8.0K /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/3/_state
13M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/3/index
33M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/3
21M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/4/translog
8.0K /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/4/_state
14M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/4/index
34M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/4
21M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/1/translog
8.0K /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/1/_state
14M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/1/index
34M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg/1
169M /opt/elasticsearch-6.2.2/data/nodes/0/indices/vHM0hvdWQbmk2ZOhRwpLkg
169M /opt/elasticsearch-6.2.2/data/nodes/0/indices

```

So there is a huge mismatch. /\_cat/indices is reporting 66.8mb and file system is reporting 169mb. Does anybody know what is going here? What exactly is /\_cat/indices reporting as size and why the mismatch?  
Does it count only 'index' ? And if so, why such a huge 'translog'? Any way I can reduce that size?

Thanks,

Francisco.

---

<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:** [April 24, 2018, 8:12pm UTC](https://discuss.elastic.co/t/cat-indices-size-not-matching-actual-size-on-disk/125808/2 "2018-04-24T20:12:20Z")

</div>

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