The query results of Elasticsearch are less than the actual number of data when data in Elasticsearch update every 30s

I am trying to use Grafana and display real time data in table. Grafana uses POST to obtain query results from Elasticsearch. While sometimes the number of acquired doc is less than the actual number. After several times refreshes the number of doc would be complete once while incomplete later. Why does it lack data in responses and not realize real time displaying. How can I obtain complete query results every 5s.

Perhaps this is due to your index refresh settings, like refresh_interval? Also, read https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html for additional doc refreshing info.

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