# Count number of times an index was searched

**URL:** https://discuss.elastic.co/t/count-number-of-times-an-index-was-searched/330260
**Category:** Elasticsearch
**Created:** [April 19, 2023, 4:48am UTC](https://discuss.elastic.co/t/count-number-of-times-an-index-was-searched/330260 "2023-04-19T04:48:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![searchwithme](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/searchwithme/32/137075_2.png) [@searchwithme](https://discuss.elastic.co/u/searchwithme)
#### Post date: [April 19, 2023, 4:48am UTC](https://discuss.elastic.co/t/count-number-of-times-an-index-was-searched/330260/1 "2023-04-19T04:48:01Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [April 19, 2023, 6:30am UTC](https://discuss.elastic.co/t/count-number-of-times-an-index-was-searched/330260/2 "2023-04-19T06:30:58Z")

</div>

Have a look at: [Index stats API | Elasticsearch Guide [8.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html)

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 17, 2023, 6:31am UTC](https://discuss.elastic.co/t/count-number-of-times-an-index-was-searched/330260/3 "2023-05-17T06:31:34Z")

</div>

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