# Using Dashboard Control to Filter Data Views

**URL:** <https://discuss.elastic.co/t/using-dashboard-control-to-filter-data-views/332771>\
**Category:** Kibana\
**Created:** [May 7, 2023, 7:14pm UTC](https://discuss.elastic.co/t/using-dashboard-control-to-filter-data-views/332771 "2023-05-07T19:14:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Mobley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_mobley/32/94741_2.png) [@Tim\_Mobley](https://discuss.elastic.co/u/Tim_Mobley)\
**Post date:** [May 7, 2023, 7:14pm UTC](https://discuss.elastic.co/t/using-dashboard-control-to-filter-data-views/332771/1 "2023-05-07T19:14:26Z")

</div>

I am attempting to make a dashboard control that has a list of data views (index patterns). Each of the associated indices contain a different category of computer assets by role. The end goal is that the dashboard user select a data view from the dashboard control, and the dashboard is filtered based on the IPs contained within that data view. Is this possible? For example, let's say the control has a drop-down that looks like this:

Developer Machines  
Servers  
HR Workstations  
Manager Computers

...when the user selects 'HR Workstations' the entire Dashboard is filtered to show only the IPs listed in the **hr-workstations** data view ( **ip.address** field).

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [May 8, 2023, 7:45am UTC](https://discuss.elastic.co/t/using-dashboard-control-to-filter-data-views/332771/2 "2023-05-08T07:45:24Z")

</div>

Hi @Tim_Mobley

I do not think that would be possible yet in dashboard.  
One possible solution would be to create N dashboards (in your case 4 dashboards) and link each other using a markdown panel.

---

<div class="post-metadata">

**Author:** ![Tim\_Mobley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_mobley/32/94741_2.png) [@Tim\_Mobley](https://discuss.elastic.co/u/Tim_Mobley)\
**Post date:** [May 8, 2023, 10:36am UTC](https://discuss.elastic.co/t/using-dashboard-control-to-filter-data-views/332771/3 "2023-05-08T10:36:37Z")

</div>

Thanks for the reply, Marco. Yes, I've already made linked dashboards w/ a markdown panel. The selections on these are things like 'DNS Events', 'IDS Alerts', etc. However, I need a way for users to easily filter a group of IPs with one click - without having to build an exponential number of dashboards. One idea I just had was - if this is not possible with the control feature - to make several filters with custom names. But I want these IP filters to be dynamic. When these inventory indices are updated, I don't want to have to manually update the dashboard filters.

`So my new question is whether there is a way to make a Query DSL filter that will filter the IPs shown on the dashboard by the IPs in a given index?`

---

<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 5, 2023, 10:37am UTC](https://discuss.elastic.co/t/using-dashboard-control-to-filter-data-views/332771/4 "2023-06-05T10:37:19Z")

</div>

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