How to get the time a query spends in the queue before the shards receives the query

The took_millis in Elasticsearch slow logs tells the time it takes on execution on the shard level, it does not encounter the time it spends in the queue. How to get the time. a query spends in the queue before it is passed on to the shards.
And what exactly is took in the response body of a query, can someone give a detailed explanation of the took parameter like which all times are included in it.

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