# Controls visualization filter uses the default index pattern

**URL:** https://discuss.elastic.co/t/controls-visualization-filter-uses-the-default-index-pattern/251189
**Category:** Kibana
**Created:** [October 6, 2020, 9:24pm UTC](https://discuss.elastic.co/t/controls-visualization-filter-uses-the-default-index-pattern/251189 "2020-10-06T21:24:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lorehek](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@lorehek](https://discuss.elastic.co/u/lorehek)
#### Post date: [October 6, 2020, 9:24pm UTC](https://discuss.elastic.co/t/controls-visualization-filter-uses-the-default-index-pattern/251189/1 "2020-10-06T21:24:35Z")

</div>

Hello community! I hope someone can help.

I'd like to have the Controls visualization filter for particular value. I can do this in other visualizations such as the data table but since when creating the controls visualization I'm not forced to select a data pattern upon creation I've run into an issue which I hope someone here can help.  
The Controls visualization works for the most part but when I go to add a filter (upper left), the dropdown gives me elements of my "default" index pattern and I don't have a way to change that to the index pattern I wish to use.

I'm using Kibana version: v 7.6.2, Elasticsearch version: v 7.6.2

Steps to reproduce

1. Create and index and add a few records

```auto
PUT /error_test_index
{
   "mappings": {
       "properties": {
        "time" : {
           "type" : "date",
           "format" : "yyyy-MM-dd HH:mm:ssZZ"
        }
       }
   }
 }

```

1. Create 'error' index pattern for the error\_test\_index.
2. Create a Controls visualization and select Add -\> index pattern = error and field = time
3. Select 'Add filter' in the upper left. The drop down displays fields from my default index and not the error\_test\_index  
How can I get this filter to use the error index pattern and not the default?  
Many thanks! --- Lou  
 ![ErrorIndexPattern](https://us1.discourse-cdn.com/elastic/original/3X/1/9/19229e8426bd2efe0ffaaefb1cae4bce14f6bd53.png) ![DefaultIndexPattern](https://us1.discourse-cdn.com/elastic/original/3X/1/0/10e9d59e79a5948200178fa77ed0479c3761082c.png) ![AddFilterDropdownDefaultIndexPattern](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c398748eff5a6e52ba49bcf87d962c74d1c76ff.png) ![CreateTimeControlFromErrorIndexPattern](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af0d4561d33e18551f9fbf00c73e49e0696b69d7.png)

---

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [October 14, 2020, 11:41am UTC](https://discuss.elastic.co/t/controls-visualization-filter-uses-the-default-index-pattern/251189/2 "2020-10-14T11:41:35Z")

</div>

Unfortunately, you have hit a bug: [https://github.com/elastic/kibana/issues/62115](https://github.com/elastic/kibana/issues/62115)  
please subscribe to that issue to get updates on the resolution

---

<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: [November 11, 2020, 11:42am UTC](https://discuss.elastic.co/t/controls-visualization-filter-uses-the-default-index-pattern/251189/3 "2020-11-11T11:42:06Z")

</div>

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