# Difference of TOOK fields in Elasticsearch?

**URL:** <https://discuss.elastic.co/t/difference-of-took-fields-in-elasticsearch/92428>\
**Category:** Elasticsearch\
**Created:** [July 10, 2017, 8:26am UTC](https://discuss.elastic.co/t/difference-of-took-fields-in-elasticsearch/92428 "2017-07-10T08:26:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [July 10, 2017, 8:26am UTC](https://discuss.elastic.co/t/difference-of-took-fields-in-elasticsearch/92428/1 "2017-07-10T08:26:43Z")

</div>

Hi,

When I ran an query in elasticsearch i got `took` as 43ms .

```
{
   "took": 43,
   "timed_out": false,
   "_shards": {
      "total": 5,
      "successful": 5,
      "failed": 0
   },

```

When i checked the slowlogs for that query and added all the `took` fields in 5 primaries and 1 replica i got total as 31.5 .  
So, what is the difference between `took` field in ES response and `took` field in slowlog?

`[2017-07-10 13:48:00,891][DEBUG][index.search.slowlog.fetch] [Guido Carosella] [data-2017][4] took[19.1ms], took_millis[19], types[], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"_source":["My query"]},"query":{"terms":{"Id":[256]}}}}}], extra_source[],`

And in both which should be considered for measuring performance of ES?

Thanks

---

<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 7, 2017, 8:26am UTC](https://discuss.elastic.co/t/difference-of-took-fields-in-elasticsearch/92428/2 "2017-08-07T08:26:47Z")

</div>

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