# Debug a single query

**URL:** <https://discuss.elastic.co/t/debug-a-single-query/959>\
**Category:** Elasticsearch\
**Created:** [May 20, 2015, 11:50am UTC](https://discuss.elastic.co/t/debug-a-single-query/959 "2015-05-20T11:50:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aken](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@aken](https://discuss.elastic.co/u/aken)\
**Post date:** [May 20, 2015, 11:50am UTC](https://discuss.elastic.co/t/debug-a-single-query/959/1 "2015-05-20T11:50:33Z")

</div>

I'm trying to debug single queries in isolation: I'm not interested in how my query is being analyzed (since the fields are all not\_analyzed), but rather in seeing how much time goes on fetch, which caches are hit etc. Is this possible for a specific query?

P.S. I've looked at EXPLAIN, but that seems to be about search-analysis internals. The slow-query log shows me which queries are slow and what of type (query-and-fetch, query-then-fetch etc.) they are, but not about where the time gets spent. Setting log-level to TRACE didn't yield what I was looking for, either.

---

<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:** [May 21, 2015, 1:28am UTC](https://discuss.elastic.co/t/debug-a-single-query/959/2 "2015-05-21T01:28:34Z")

</div>

This isn't currently possible.

---

<div class="post-metadata">

**Author:** ![aken](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@aken](https://discuss.elastic.co/u/aken)\
**Post date:** [May 21, 2015, 7:09am UTC](https://discuss.elastic.co/t/debug-a-single-query/959/3 "2015-05-21T07:09:04Z")

</div>

I thought as much - thank you for the confirmation!

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [May 21, 2015, 11:25am UTC](https://discuss.elastic.co/t/debug-a-single-query/959/4 "2015-05-21T11:25:40Z")

</div>

There is a feature request [https://github.com/elastic/elasticsearch/pull/6699](https://github.com/elastic/elasticsearch/pull/6699)

---

<div class="post-metadata">

**Author:** ![aken](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@aken](https://discuss.elastic.co/u/aken)\
**Post date:** [May 22, 2015, 10:54am UTC](https://discuss.elastic.co/t/debug-a-single-query/959/5 "2015-05-22T10:54:39Z")

</div>

That looks great. Is it scheduled for a particular release?

---

<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, 12:12am UTC](https://discuss.elastic.co/t/debug-a-single-query/959/6 "2017-07-06T00:12:26Z")

</div>


