# Get source of queries hitting indexes

**URL:** <https://discuss.elastic.co/t/get-source-of-queries-hitting-indexes/333250>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [May 12, 2023, 3:23am UTC](https://discuss.elastic.co/t/get-source-of-queries-hitting-indexes/333250 "2023-05-12T03:23:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![callumdowling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/callumdowling/32/118300_2.png) [@callumdowling](https://discuss.elastic.co/u/callumdowling)\
**Post date:** [May 12, 2023, 3:23am UTC](https://discuss.elastic.co/t/get-source-of-queries-hitting-indexes/333250/1 "2023-05-12T03:23:38Z")

</div>

Hi all, just wondering if this is possible.

We have several tiers in elastic cloud, we would like to see when the frozen tier is being rules/dashboards/queries for our indexes so we can go through and optimise. Is there a query I can run on an index that would breakdown this info? E.g. (index, source, lookback period)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 17, 2023, 11:52pm UTC](https://discuss.elastic.co/t/get-source-of-queries-hitting-indexes/333250/2 "2023-05-17T23:52:41Z")

</div>

Welcome to our community! 😃

You can enable audit logging to another cluster as per [Enable logging and monitoring | Elasticsearch Service Documentation | Elastic](https://www.elastic.co/guide/en/cloud/current/ec-enable-logging-and-monitoring.html#ec-extra-logging-features-elasticsearch), but there's nothing otherwise out of the box to Elasticsearch to do this sorry to say.

---

<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:** [June 14, 2023, 11:53pm UTC](https://discuss.elastic.co/t/get-source-of-queries-hitting-indexes/333250/3 "2023-06-14T23:53:16Z")

</div>

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