Count number of times an index was searched

Hi team!

Is there a way to find out how many times a particular index was searched/queries? If not a direct API in elastic, is there a workaround to get this metric?

Have a look at: Index stats API | Elasticsearch Guide [8.7] | Elastic

This might answer your question. If not, I believe that you will need to add a proxy before Elasticsearch and store whatever you want to collect in Elasticsearch to compute the needed stats.