Restrict 0 Hits results logs from search_slowlog.log

Working on elastic search 6.5.2. I added index settings for search_slowlog and its working perfectly fine and Is there a way that I can log only the successful hits by removing total_hits[0] results.

Index Settings:

PUT slowsearch/_settings
"search.slowlog.threshold.query.warn": "0ms",
"": "0ms",
"search.slowlog.threshold.query.debug": "0ms",
"search.slowlog.threshold.query.trace": "0ms",
"search.slowlog.threshold.fetch.warn": "0ms",
"": "0ms",
"search.slowlog.threshold.fetch.debug": "0ms",
"search.slowlog.threshold.fetch.trace": "0ms"

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