Time Spent on Counting Request - Elastic Search

I want to know the time taken to query a count in an elastic search, just like querying a search query that contains - time. took

My query looks like this: curl -XGET "http://localhost:9200/index1/type1/_count"

And the result for this query is

{
   "count": 136,
   "_shards": {
      "total": 15,
      "successful": 15,
      "failed": 0
   }
}

Is there any way so that I can get the time spent on the count request in the same way as finding the api?

Document for API Account Count API

+4
source share

Source: https://habr.com/ru/post/1617813/


All Articles