How to get number of queries execute on a certain type

(Yifei) #1


Is it possible to get number of queries/searched executed on a type in an certain index?

What I am going to do is to calculate query rate per type in an index, is it possible to do that?

(Christoph) #2


this is not done by default and I think there is no API that would give you this kind of statistics. But I saw people using (or abusing, depends on the point of view) the slow log do log all search and index requests to your cluster. This blog gives an idea of how to do this. You would have to filter and analyze the logs yourself to get the query rates though.

(system) #3