How to find execution time of elasticsearch query How to find execution time of elasticsearch query elasticsearch elasticsearch

How to find execution time of elasticsearch query


The 'took' attribute in the response object is the execution time in milliseconds. For example:

{  "took" : 17,  "timed_out" : false,  "_shards" : {    "total" : 5,    "successful" : 5,    "skipped" : 0,    "failed" : 0  },  "hits" : {    "total" : 0,    "max_score" : null,    "hits" : [ ]  }}