# Logstash 5.1.2 API returns incorrect values (-1)

**URL:** <https://discuss.elastic.co/t/logstash-5-1-2-api-returns-incorrect-values-1/84926>\
**Category:** Logstash\
**Created:** [May 8, 2017, 11:55am UTC](https://discuss.elastic.co/t/logstash-5-1-2-api-returns-incorrect-values-1/84926 "2017-05-08T11:55:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![przemek\_danysz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/przemek_danysz/32/18030_2.png) [@przemek\_danysz](https://discuss.elastic.co/u/przemek_danysz)\
**Post date:** [May 8, 2017, 11:55am UTC](https://discuss.elastic.co/t/logstash-5-1-2-api-returns-incorrect-values-1/84926/1 "2017-05-08T11:55:39Z")

</div>

Hi All,

I have problem with one of my logstashes.  
I want to monitoring LS via API, but it returns wrong values for CPU/MEM/etc, as example shows:

> [root@mylab]# curl -s -XGET '[http://127.0.0.1:9600/\_node/stats/process](http://127.0.0.1:9600/_node/stats/process)' | python -m json.tool  
> {  
> "host": "mylab",  
> "http\_address": "127.0.0.1:9600",  
> "id": "58c96a8c-f21a-4155-a973-b04585cbfc60",  
> "name": "mylab",  
> "process": {  
> "cpu": {  
> "load\_average": {  
> "15m": 2.24,  
> "1m": 2.66,  
> "5m": 2.48  
> },  
> "percent": -1,  
> "total\_in\_millis": -1  
> },  
> "max\_file\_descriptors": -1,  
> "mem": {  
> "total\_virtual\_in\_bytes": -1  
> },  
> "open\_file\_descriptors": -1,  
> "peak\_open\_file\_descriptors": -1  
> },  
> "version": "5.1.2"  
> }

A you see, there is a lot of values with "-1", and that is definitly wrong 🙂 , because on the same configuration on another host, values are OK.

Where can be a problem ? I don't know where to look further.

Logstash: 5.1.2  
OS: Red Hat Enterprise Linux Server release 7.3 (Maipo)

---

<div class="post-metadata">

**Author:** ![przemek\_danysz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/przemek_danysz/32/18030_2.png) [@przemek\_danysz](https://discuss.elastic.co/u/przemek_danysz)\
**Post date:** [May 10, 2017, 7:34am UTC](https://discuss.elastic.co/t/logstash-5-1-2-api-returns-incorrect-values-1/84926/2 "2017-05-10T07:34:53Z")

</div>

Nobody can help ? ☹

---

<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 7, 2017, 7:36am UTC](https://discuss.elastic.co/t/logstash-5-1-2-api-returns-incorrect-values-1/84926/3 "2017-06-07T07:36:17Z")

</div>

Closed on June 7, 2017, 7:36am UTC

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