# ES Cluster Stats API Returning False Values

**URL:** <https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949>\
**Category:** Elasticsearch\
**Created:** [May 8, 2017, 2:56pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949 "2017-05-08T14:56:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)\
**Post date:** [May 8, 2017, 2:56pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/1 "2017-05-08T14:56:07Z")

</div>

I run some cronjobs that use the cluster stats api to retrieve the total cluster space and the current available cluster space in bytes and run some calculations on them. However, one of our clusters is now returning false values for those categories.

Specifically, this api call:

`curl -XGET "http://$(hostname -i):9200/_cluster/stats?human&pretty"`

is returning these values (extracted just the fs values since those are the ones we use in calculations)

```
"fs" : {
  "total" : "8192pb",
  "total_in_bytes" : 9223372036854775807,
  "free" : "8192pb",
  "free_in_bytes" : 9223372036854775807,
  "available" : "8192pb",
  "available_in_bytes" : 9223372036854775807
}

```

The cluster ACTUALLY consists of 3 nodes with 800gb each so ~2.5tb in total. Not pb's.

Currently, I have even gone in and manually deleted some indices, but these fs values seem to be stuck exactly like this.

Any tips on where to start fixing this would be greatly appreciated!!

Thank you!

---

<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:** [May 9, 2017, 6:59am UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/2 "2017-05-09T06:59:40Z")

</div>

What version are you on? What OS?

---

<div class="post-metadata">

**Author:** ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)\
**Post date:** [May 9, 2017, 2:06pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/3 "2017-05-09T14:06:44Z")

</div>

Ubuntu 14.04

Over night our fs stats seem to have returned to normal. Very weird issue though, I'd be interested to hear if anyone else has experienced anything similar.

---

<div class="post-metadata">

**Author:** ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)\
**Post date:** [May 12, 2017, 2:19pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/4 "2017-05-12T14:19:03Z")

</div>

Update, this issue still exists. I had believed that it had resolved itself because I queried the cluster on another node and got back accurate values. However, it has become clear that this error is only happening on a single node.

These stats appear to be gathered locally then - what could be corrupted that could cause a result like this??

---

<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:** [May 13, 2017, 3:48am UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/5 "2017-05-13T03:48:23Z")

</div>

What version of ES is this?  
How did you install it? Are you using virtualisation or containerisation?

---

<div class="post-metadata">

**Author:** ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)\
**Post date:** [May 16, 2017, 6:15pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/6 "2017-05-16T18:15:03Z")

</div>

These are running on virtual machines in GCS and were installed via chef by unpacking the tarball made available at [https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz).

We have noticed these numbers are also showing up in our kibana monitoring interface:

![](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a46f56c279af0815750d7f9b978341f6025ab87.png)

Where 8EB =\> 8 Exabytes, but when I go into the nodes page I can see the actual values

 ![](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23eab592a99e26a4be6caccbe8f2921f4c2760c4.png)

![](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4dfdd68c17bc5310cf4b91565b3289bbff6824f2.png)

---

<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:** [May 16, 2017, 8:59pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/7 "2017-05-16T20:59:46Z")

</div>

@pickypg any thoughts here?

---

<div class="post-metadata">

**Author:** ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)\
**Post date:** [May 16, 2017, 9:23pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/8 "2017-05-16T21:23:10Z")

</div>

The nodes listing and the cluster summary come from two different APIs:

The node stats are literally the `_nodes/stats` API from Elasticsearch, per node, while the cluster summary is the `_cluster/stats` endpoint.

Something is weird making the `_cluster/stats` report so much data. I noticed in the picture that it says you have 4 nodes, but only 3 nodes appear? What is the 4th node?

---

<div class="post-metadata">

**Author:** ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)\
**Post date:** [May 17, 2017, 4:17pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/9 "2017-05-17T16:17:04Z")

</div>

The 4th node is a tribe to allow this kibana instance to query across several of our other clusters.

---

<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:** [June 14, 2017, 4:17pm UTC](https://discuss.elastic.co/t/es-cluster-stats-api-returning-false-values/84949/10 "2017-06-14T16:17:07Z")

</div>

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