# Find the number of search requests per day hitting ES Cluster

**URL:** https://discuss.elastic.co/t/find-the-number-of-search-requests-per-day-hitting-es-cluster/313865
**Category:** Elasticsearch
**Created:** [September 7, 2022, 8:57am UTC](https://discuss.elastic.co/t/find-the-number-of-search-requests-per-day-hitting-es-cluster/313865 "2022-09-07T08:57:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sandeepkanabar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeepkanabar/32/79399_2.png) [@sandeepkanabar](https://discuss.elastic.co/u/sandeepkanabar)
#### Post date: [September 7, 2022, 8:57am UTC](https://discuss.elastic.co/t/find-the-number-of-search-requests-per-day-hitting-es-cluster/313865/1 "2022-09-07T08:57:52Z")

</div>

Is there a way to know the (average) number of `search` requests per day hitting the Elasticsearch cluster?

If my ES cluster contains day-wise indices and I want find the no of search requests that hit ES cluster in last 16 days, then

`GET <my_index_prefix>-2022-08-2*,<my_index_prefix>-2022-08-3*,<my_index_prefix>-2022-09-*/_stats/search?filter_path=_all.total.search.fetch_total,_all.total.search.query_total`.

It's output:

```auto
{
  "_all" : {
    "total" : {
      "search" : {
        "query_total" : 5567,
        "fetch_total" : 976
      }
    }
  }
}

```

Perform summation of `query_total` with `fetch_total` which would give `5567 + 976 = 6543`.

Since this was for 16 days, per day would be approx `6543/16 = 408` search requests per day.

Is this the correct approach?

---

<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: [October 5, 2022, 8:58am UTC](https://discuss.elastic.co/t/find-the-number-of-search-requests-per-day-hitting-es-cluster/313865/2 "2022-10-05T08:58:08Z")

</div>

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