# Uwsgi statistics parsing failed with error: unexpected end of JSON input

**URL:** <https://discuss.elastic.co/t/uwsgi-statistics-parsing-failed-with-error-unexpected-end-of-json-input/192624>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 29, 2019, 7:33am UTC](https://discuss.elastic.co/t/uwsgi-statistics-parsing-failed-with-error-unexpected-end-of-json-input/192624 "2019-07-29T07:33:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelo\_Deng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angelo_deng/32/45171_2.png) [@Angelo\_Deng](https://discuss.elastic.co/u/Angelo_Deng)\
**Post date:** [July 29, 2019, 7:33am UTC](https://discuss.elastic.co/t/uwsgi-statistics-parsing-failed-with-error-unexpected-end-of-json-input/192624/1 "2019-07-29T07:33:14Z")

</div>

Did anyone meet the problem?

I add the uwsgi module on metricbeat

My config is :

metricbeat.modules:

- module: docker  
metricsets:
  - "container"
  - "cpu"
  - "diskio"
  - "healthcheck"
  - "info"  
#- "image"
  - "memory"
  - "network"  
hosts: ["unix:///var/run/docker.sock"]  
period: 10s  
enabled: true

- module: uwsgi  
metricsets: ["status"]  
enable: true  
period: 10s  
hosts: ["tcp://127.0.0.1:9091"]

monitor metricbeat:  
ERROR status/data.go:82 uwsgi statistics parsing failed with error: unexpected end of JSON input

How to solve the problem?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Alex\_Kristiansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_kristiansen/32/46086_2.png) [@Alex\_Kristiansen](https://discuss.elastic.co/u/Alex_Kristiansen)\
**Post date:** [August 12, 2019, 6:22pm UTC](https://discuss.elastic.co/t/uwsgi-statistics-parsing-failed-with-error-unexpected-end-of-json-input/192624/2 "2019-08-12T18:22:04Z")

</div>

[Angelo\_Deng](https://discuss.elastic.co/u/Angelo_Deng),

Can you verify that the `status` endpoint that uwsgi exposes is working properly? You should be able to access the raw TCP endpoint using `nc` or `uwsgi`as demonstrated here:  
[https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html](https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.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:** [September 9, 2019, 6:35pm UTC](https://discuss.elastic.co/t/uwsgi-statistics-parsing-failed-with-error-unexpected-end-of-json-input/192624/3 "2019-09-09T18:35:04Z")

</div>

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