# How to tune up \_field\_stats? (cosumes most time in kibana dashboards)

**URL:** <https://discuss.elastic.co/t/how-to-tune-up--field-stats-cosumes-most-time-in-kibana-dashboards/87521>\
**Category:** Elasticsearch\
**Created:** [May 30, 2017, 8:37am UTC](https://discuss.elastic.co/t/how-to-tune-up--field-stats-cosumes-most-time-in-kibana-dashboards/87521 "2017-05-30T08:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [May 30, 2017, 8:37am UTC](https://discuss.elastic.co/t/how-to-tune-up--field-stats-cosumes-most-time-in-kibana-dashboards/87521/1 "2017-05-30T08:37:52Z")

</div>

Hi,

I have a summary dashboard which shows me cpu, mem, mem per process, disk usage for our 8 servers.  
To have an impression: This is a sample line of a single server:

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

This dashboard is loading slowly. I checked in browsers developer mode and got following network times on a refresh.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/a/6aaedcced8c8276bc297c28fcb9f947c802d5a23.png)  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c22f471e13aeb0ca7b40d0eb6d3f12f083782486.png)

So most of the time is spent for getting requesting the \_field\_stats api.  
\_mesearch only takes 0.5s of 5s overall in this example. Sometimes \_field\_stats takes in sum 10s and \_msearch 1s.

Any Idea how I can speed up the \_field\_stats which kibana seems to gather for each panel?

We are on ELK 5.1.2 single instance, all on one server. Kibana access is proxied via apache 2.4 and TLS.  
Machine has 8CPU and 120GB RAM.

Monitoring:  
Elasticsearch:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0fe71d5dade0003085fe33a588ee39dcb0c4540c.png)  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/8/485fd2e1661db65253b6d7cb1d0ea78817e69720.png)

Kibana:

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

Any aid on how to tune up would be appreciated.

Thanks, Andreas

---

<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 27, 2017, 8:38am UTC](https://discuss.elastic.co/t/how-to-tune-up--field-stats-cosumes-most-time-in-kibana-dashboards/87521/2 "2017-06-27T08:38:30Z")

</div>

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