# ElasticSearch ProfileAPI

**URL:** <https://discuss.elastic.co/t/elasticsearch-profileapi/75817>\
**Category:** Elasticsearch\
**Created:** [February 21, 2017, 4:45am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817 "2017-02-21T04:45:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [February 21, 2017, 4:45am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/1 "2017-02-21T04:45:54Z")

</div>

Hi,  
I am using the Profile API to understand the query behavior at the back-end. I see, when we fire a query  
there is a normal search response time 'took', which is lesser than the time than what is observed in the profile data.

For instance, this is what my response looks like: took: 934 ... profile : query: time : 1310ms for one of the shards.  
My expectation is the profile data is showing the distribution for the time taken to get the search response.

Could anyone explain why is this discrepancy seen or why is this expected ?

Thanks, Divya

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 21, 2017, 7:44am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/2 "2017-02-21T07:44:52Z")

</div>

Can you provide the call and the output?

---

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [February 22, 2017, 5:30am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/3 "2017-02-22T05:30:02Z")

</div>

Its quite huge to copy paste here. Any way to upload or share the files with you ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 22, 2017, 5:30am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/4 "2017-02-22T05:30:34Z")

</div>

Use gist/pastebin/etc.

---

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [February 22, 2017, 5:38am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/5 "2017-02-22T05:38:34Z")

</div>

Please fine the query and response here  
[http://pastebin.com/JXzDqNHS](http://pastebin.com/JXzDqNHS) - query  
[http://pastebin.com/Wf09yE1y](http://pastebin.com/Wf09yE1y) - resp

---

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [March 2, 2017, 4:38am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/6 "2017-03-02T04:38:12Z")

</div>

Ping!

---

<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:** [March 30, 2017, 4:38am UTC](https://discuss.elastic.co/t/elasticsearch-profileapi/75817/7 "2017-03-30T04:38:21Z")

</div>

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