# Visualize Library - Tools - Controls have wrong fields in filter section

**URL:** https://discuss.elastic.co/t/visualize-library-tools-controls-have-wrong-fields-in-filter-section/312382
**Category:** Kibana
**Created:** [August 18, 2022, 12:12pm UTC](https://discuss.elastic.co/t/visualize-library-tools-controls-have-wrong-fields-in-filter-section/312382 "2022-08-18T12:12:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Wojciech\_Kwiecien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wojciech_kwiecien/32/109829_2.png) [@Wojciech\_Kwiecien](https://discuss.elastic.co/u/Wojciech_Kwiecien)
#### Post date: [August 18, 2022, 12:12pm UTC](https://discuss.elastic.co/t/visualize-library-tools-controls-have-wrong-fields-in-filter-section/312382/1 "2022-08-18T12:12:12Z")

</div>

Hello everyone.  
I tried to add some filterthe s into visualization section and like you the see on screen I selecthe ted in controls panel on the right side Index patter apm-\*-transaction and I tried to add in filter url.full : _reportManager_ or url.fragment but those fields are not visible in drop down.

 ![Visual](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a87e1b5dbbe0cc57ea92255177a44fa15d2a6248.png)

After those attempts I add a filter as a DSL query :

```auto
{
  "query": {
    "bool": {
      "filter": [
        {
          "bool": {
            "minimum_should_match": 1,
            "should": [
              {
                "query_string": {
                  "fields": [
                    "url.full"
                  ],
                  "query": "*reportManager*"
                }
              }
            ]
          }
        }
      ],
      "must": [],
      "must_not": [],
      "should": []
    }
  }
}

```

But this wasn't help to retrieve correct values in dropdown.  
I checked the saved objects section and how it looks like there :

 ![saved objects](https://us1.discourse-cdn.com/elastic/original/3X/6/1/6194f5042fac7e8f849765a57d508937449da76f.png)  
I followed those examples :

- [Rename the index-pattern for sample visualizations - #2 by flash1293](https://discuss.elastic.co/t/rename-the-index-pattern-for-sample-visualizations/266617/2)
- [Changing the index pattern that a visualisation is based on](https://discuss.elastic.co/t/changing-the-index-pattern-that-a-visualisation-is-based-on/268290)

Can someone help me with this 🙂  
I am wondering if this is a bug ? or I missed something in configuration.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [September 6, 2022, 3:18pm UTC](https://discuss.elastic.co/t/visualize-library-tools-controls-have-wrong-fields-in-filter-section/312382/2 "2022-09-06T15:18:07Z")

</div>

I assume you are in Kibana 7.x. Check this issue and comments where the same behavior is described.

> <https://github.com/elastic/kibana/issues/62115>
>
> \*\*Kibana version:\*\* 7.6
> 
> \*\*Elasticsearch version:\*\* 7.6
> 
> \*\*Server OS version…:\*\* N/A
> 
> \*\*Browser version:\*\* N/A
> 
> \*\*Browser OS version:\*\* N/A
> 
> \*\*Original install method (e.g. download page, yum, from source, etc.):\*\* Elastic Cloud
> 
> \*\*Describe the bug:\*\* When creating a new visualization "Control", I can choose the index pattern I want in the options of the control but if I need to add certain filter, I only can do it using the default (preferred) index pattern that may not match with the index pattern used in the control, so it's not possible to filter the documents.
> 
> \*\*Steps to reproduce:\*\*
> 1. Create a new Visualization \> Control
> 2. Add a new control, e.g.: Option List
> 3. In the new control options, specify an index pattern that doesn't match the default (preferred) index pattern and complete the control options choosing any field
> 4. Add a new filter by clicking in the link "+ Add filter": the fields displayed doesn't match the index pattern chosen in the control settings and there is no way to change the index pattern of the filter
> 
> \*\*Expected behavior:\*\* The index pattern of the filter should be able to be changed or identify the index pattern from the controls' options and providing the list of the fields of all the index patterns used
> 
> \*\*Screenshots (if relevant):\*\*
> 
> \*\*Errors in browser console (if relevant):\*\*
> 
> \*\*Provide logs and/or server output (if relevant):\*\*
> 
> \*\*Any additional context:\*\*

In the new version of the controls for 8.x you cannot specify filters for the controls visualization.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2ad930b534588029858c9ca47ba32d9ed89fe0b9.png)

---

<div class="post-metadata">

### Author: ![devon.thomson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devon.thomson/32/85468_2.png) [@devon.thomson](https://discuss.elastic.co/u/devon.thomson)
#### Post date: [September 6, 2022, 4:24pm UTC](https://discuss.elastic.co/t/visualize-library-tools-controls-have-wrong-fields-in-filter-section/312382/3 "2022-09-06T16:24:22Z")

</div>

The ability to pre-filter the new Controls is being considered for phase III of the Controls project. The issue related to this enhancement request is [here](https://github.com/elastic/kibana/issues/140112)

---

<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: [October 4, 2022, 4:24pm UTC](https://discuss.elastic.co/t/visualize-library-tools-controls-have-wrong-fields-in-filter-section/312382/4 "2022-10-04T16:24:52Z")

</div>

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