# How to intercept kibana request from ES to use only a subset of data

**URL:** <https://discuss.elastic.co/t/how-to-intercept-kibana-request-from-es-to-use-only-a-subset-of-data/259885>\
**Category:** Kibana\
**Created:** [December 30, 2020, 1:46pm UTC](https://discuss.elastic.co/t/how-to-intercept-kibana-request-from-es-to-use-only-a-subset-of-data/259885 "2020-12-30T13:46:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [December 30, 2020, 1:46pm UTC](https://discuss.elastic.co/t/how-to-intercept-kibana-request-from-es-to-use-only-a-subset-of-data/259885/1 "2020-12-30T13:46:33Z")

</div>

Hi,  
I'm trying to intercept Kibana query to ES. I need for the Dashboards only to use a subset of documents as it's DATA. This can't be achieved as a dashboard filter.

How can this be achieved? Do I need to intercept the query? how do I only use a subset of the index data for the Kibana visualizations?

Thanks

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [December 30, 2020, 2:04pm UTC](https://discuss.elastic.co/t/how-to-intercept-kibana-request-from-es-to-use-only-a-subset-of-data/259885/2 "2020-12-30T14:04:23Z")

</div>

On filters if you click `Edit as Query DSL` you can write your own query to get that subset you need.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c2e6878cd56be3f6c4d0bf1ebb0fa30368b9002.png)

---

<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:** [January 27, 2021, 2:04pm UTC](https://discuss.elastic.co/t/how-to-intercept-kibana-request-from-es-to-use-only-a-subset-of-data/259885/3 "2021-01-27T14:04:47Z")

</div>

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