# ES Response Time

**URL:** <https://discuss.elastic.co/t/es-response-time/16029>\
**Category:** Elasticsearch\
**Created:** [February 26, 2014, 11:31am UTC](https://discuss.elastic.co/t/es-response-time/16029 "2014-02-26T11:31:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)\
**Post date:** [February 26, 2014, 11:31am UTC](https://discuss.elastic.co/t/es-response-time/16029/1 "2014-02-26T11:31:27Z")

</div>

Hi All,  
Is there any way to measure end-to-end response time for a query in elastic search?  
That is the time taken from the time query is executed and the result is shown on the ES UI.

And what does took parameter means in response ouput?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [February 26, 2014, 12:30pm UTC](https://discuss.elastic.co/t/es-response-time/16029/2 "2014-02-26T12:30:26Z")

</div>

The `took` parameter is the number of milliseconds that the query took to  
execute on the Elasticsearch server. It's basically the time required to  
parse the query, broadcast it to the shards and collect the results. It  
doesn't include network time going to and from Elasticsearch itself (since  
that is basically unknowable information to ES).

If you want to record total end-to-end, you'll have to do it in your  
application. Start a timer, send the request, stop the timer when the  
response comes back. That will be your total time. You can also subtract  
the `took` parameter from the total time to see the effects of network  
(e.g. total time is 2 seconds, but `took` parameter is 100ms...that means  
you had 1.9s of network latency causing the slowdown).

-Zach

On Wednesday, February 26, 2014 6:31:27 AM UTC-5, Prashy wrote:

> Hi All,  
> Is there any way to measure end-to-end response time for a query in  
> elastic  
> search?  
> That is the time taken from the time query is executed and the result is  
> shown on the ES UI.
> 
> And what does took parameter means in response ouput?
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/ES-Response-Time-tp4050525.html](http://elasticsearch-users.115913.n3.nabble.com/ES-Response-Time-tp4050525.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/abbcb6e1-0ace-4835-8b93-dc1e69a32de2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/abbcb6e1-0ace-4835-8b93-dc1e69a32de2%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:47am UTC](https://discuss.elastic.co/t/es-response-time/16029/3 "2017-07-06T01:47:15Z")

</div>


