Search query duration record

Hi. I have a problem in an ES cluster, where due to heavy search queries the cluster stops responding. I want to adjust the global search timeout and we wanted to know if there was a way to obtain the duration of each search query or how we can start recording this to use this metric to adjust the timeout time.

Thanks
Santiago

Welcome to our community! :smiley:

Search your data | Elasticsearch Guide [7.15] | Elastic has details on this, specifically;

This global timeout duration is used if no timeout argument is passed in the request. If the global search timeout expires before the search request finishes, the request is cancelled using task cancellation. The search.default_search_timeout setting defaults to -1 (no timeout).

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