# Dashboard filter does not include fields from the index used in Vega visualization

**URL:** <https://discuss.elastic.co/t/dashboard-filter-does-not-include-fields-from-the-index-used-in-vega-visualization/258033>\
**Category:** Kibana\
**Created:** [December 8, 2020, 6:00pm UTC](https://discuss.elastic.co/t/dashboard-filter-does-not-include-fields-from-the-index-used-in-vega-visualization/258033 "2020-12-08T18:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ege](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ege/32/80438_2.png) [@ege](https://discuss.elastic.co/u/ege)\
**Post date:** [December 8, 2020, 6:00pm UTC](https://discuss.elastic.co/t/dashboard-filter-does-not-include-fields-from-the-index-used-in-vega-visualization/258033/1 "2020-12-08T18:00:53Z")

</div>

Hi,

I am trying to add an on-click signal to add a filter when clicked on each sector of a pie-chart using Vega. Even though the filter is added, it is not affected on the chart and shows an error within the filter.

 ![Issue_Image_1](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4da70a0be7a6ad7e04394f725afe3975aee20a7.png)

The fields of the index I'm using for the visualization are not seem to be included, as the error says **Disabled Field machine.os.keyword not found in index pattern apache** \*. But, _apache_\* is not the index I'm using for the pie-chart although it is an index I created earlier in Elasticsearch and the default index I get when opening Kibana Discover.

However, I can add the same filter manually as a Kibana search query and it will work fine.

 ![Issue_Image_2](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f57c2ac1b5070c8ebbbea5eb5a5e18f063fbc5a6.png)

Why are the fields from the index I'm using are not available in filters? As an alternative, is it possible to add a query in the search bar using an on-click signal?

I'm using Elastic v 7.9.3

Any help would be greatly appreciated.

Cheers!

---

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [December 8, 2020, 6:13pm UTC](https://discuss.elastic.co/t/dashboard-filter-does-not-include-fields-from-the-index-used-in-vega-visualization/258033/2 "2020-12-08T18:13:56Z")

</div>

Hi @ege, welcome to the community ❤

This should be fixed in upcoming 7.11 release by this pr: [https://github.com/elastic/kibana/pull/84090](https://github.com/elastic/kibana/pull/84090)

As a workaround until then you could try to change your default index pattern to the one you are using in Vega viz.

---

<div class="post-metadata">

**Author:** ![ege](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ege/32/80438_2.png) [@ege](https://discuss.elastic.co/u/ege)\
**Post date:** [December 8, 2020, 6:34pm UTC](https://discuss.elastic.co/t/dashboard-filter-does-not-include-fields-from-the-index-used-in-vega-visualization/258033/3 "2020-12-08T18:34:12Z")

</div>

Great! Thank you so much for the clarification @dosant. 😊

---

<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 5, 2021, 6:34pm UTC](https://discuss.elastic.co/t/dashboard-filter-does-not-include-fields-from-the-index-used-in-vega-visualization/258033/4 "2021-01-05T18:34:16Z")

</div>

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