# How to compute meaningful Query Latency our users are experiencing (near real time)

**URL:** https://discuss.elastic.co/t/how-to-compute-meaningful-query-latency-our-users-are-experiencing-near-real-time/192772
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [July 29, 2019, 8:16pm UTC](https://discuss.elastic.co/t/how-to-compute-meaningful-query-latency-our-users-are-experiencing-near-real-time/192772 "2019-07-29T20:16:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jacko-ski](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jacko-ski](https://discuss.elastic.co/u/Jacko-ski)
#### Post date: [July 29, 2019, 8:16pm UTC](https://discuss.elastic.co/t/how-to-compute-meaningful-query-latency-our-users-are-experiencing-near-real-time/192772/1 "2019-07-29T20:16:09Z")

</div>

We are running Elasticsearch 6.3 (Basic License). We gather Indices Stats data, specifially these fields:

> indices.search.query\_time\_in\_millis| |68,541,282|  
> indices.search.query\_total| |9,417,494|

I would like to compute Query latency data points throughout the day to gauge what our real-time users are experiencing. Questions:

1. If I divide the search.query\_time\_in\_millis over the search.query\_total will that produce a meaningful Query Latency measurement that I can accurately depict user experience with search?

2. Does the search.query\_time\_in\_millis represent the total Query Latency, including the Waiting Time, or is this just the Service Time (as described here in this Presentation: [https://www.elastic.co/elasticon/conf/2018/sf/the-seven-deadly-sins-of-elasticsearch-benchmarking](https://www.elastic.co/elasticon/conf/2018/sf/the-seven-deadly-sins-of-elasticsearch-benchmarking) @12:50)

---

<div class="post-metadata">

### Author: ![Jacko-ski](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jacko-ski](https://discuss.elastic.co/u/Jacko-ski)
#### Post date: [July 30, 2019, 6:28pm UTC](https://discuss.elastic.co/t/how-to-compute-meaningful-query-latency-our-users-are-experiencing-near-real-time/192772/2 "2019-07-30T18:28:06Z")

</div>

Noone can help clarify those two data items? I've tried searching the documentation but no luck.

---

<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: [August 27, 2019, 6:28pm UTC](https://discuss.elastic.co/t/how-to-compute-meaningful-query-latency-our-users-are-experiencing-near-real-time/192772/3 "2019-08-27T18:28:08Z")

</div>

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