# Dashboard control empty

**URL:** <https://discuss.elastic.co/t/dashboard-control-empty/362781>\
**Category:** Kibana\
**Tags:** dashboard\
**Created:** [July 9, 2024, 9:06am UTC](https://discuss.elastic.co/t/dashboard-control-empty/362781 "2024-07-09T09:06:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khaled\_Saidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaled_saidi/32/98636_2.png) [@Khaled\_Saidi](https://discuss.elastic.co/u/Khaled_Saidi)\
**Post date:** [July 9, 2024, 9:06am UTC](https://discuss.elastic.co/t/dashboard-control-empty/362781/1 "2024-07-09T09:06:08Z")

</div>

Hi everyone,  
I try to add a control component to my dashboard to list and filter on the cluster.name field.  
Checked in discover, the field exist and is filled :

 ![Capture d'écran 2024-07-09 103556](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4f98e182975524da31d81183dad51cc593874ac1.png)

I think the control configuration is right :

 ![Capture d'écran 2024-07-09 103521](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5ea5a8f737553a49c7411dabad5408040c494eef.png)

But the listbox is empty :

 ![Capture d'écran 2024-07-09 103630](https://us1.discourse-cdn.com/elastic/original/3X/8/2/826db555fd98c5c2150c6990b0839850b5097d10.png)

On another dashboard, the same control is correctly filled...  
Any idea on my issue will be appreciate.  
As always, thx for your help.

BR,  
Khaled

---

<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:** [July 9, 2024, 9:49am UTC](https://discuss.elastic.co/t/dashboard-control-empty/362781/2 "2024-07-09T09:49:37Z")

</div>

Hi @Khaled_Saidi, thanks for posting

What version of the Elastic Stack are you using?

Can you con share the definition of that Data View called `.monitoring-es-8-mb` and ideally also confirm the mapping of the `cluster.name` field on the indices that are included in that Data View?

Do you see any errors in the browser console?

---

<div class="post-metadata">

**Author:** ![Khaled\_Saidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaled_saidi/32/98636_2.png) [@Khaled\_Saidi](https://discuss.elastic.co/u/Khaled_Saidi)\
**Post date:** [July 10, 2024, 7:55am UTC](https://discuss.elastic.co/t/dashboard-control-empty/362781/3 "2024-07-10T07:55:22Z")

</div>

Hi Jsanz,

The ELK stack version is 8.x  
here is the dataview definition :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/3/0346af4a8f05162a29bbdaeeccc7b5a6986c6862.jpeg)

The cluster.name field is a runtime field, so it does not appears in the index mapping. Perhaps it is not possible to fill a dashboard control with a runtime field content. For information, i added another control "cluster.id", and when this one is selected, cluster name control is filled....

No error in the browser console...

---

<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:** [July 15, 2024, 9:57am UTC](https://discuss.elastic.co/t/dashboard-control-empty/362781/4 "2024-07-15T09:57:36Z")

</div>

> [@Khaled\_Saidi](#):
>
> Perhaps it is not possible to fill a dashboard control with a runtime field content.

Dashboard Controls accept runtime fields. You can check this easily with the Flights sample dataset by creating a simple runtime field that emits any of the existing fields.

My only remaining idea is whether the runtime field is throwing errors that Kibana is not properly capturing.

I did a test in 8.14.3 with the Flights dataset and a code like yours to define a new `test` field:

```java
Map carrierMap = [
    "Kibana Airlines": "Kibana",
    "Logstash Airways": "Logstash",
    //"JetBeats": "Beats",
    "ES-Air": "Elasticsearch"];

emit(carrierMap[doc['Carrier'].value])

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/0/8017517de805e44d1bbee2a6aed6275c2d41d7a0.png)

First, without the comment, I could create a dashboard with the controls that work correctly.

Then, as I described above, I commented on one of the keys to force the field to fail. The control showed an error, not really explaining anything, but an error nonetheless.

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

---

<div class="post-metadata">

**Author:** ![Khaled\_Saidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaled_saidi/32/98636_2.png) [@Khaled\_Saidi](https://discuss.elastic.co/u/Khaled_Saidi)\
**Post date:** [July 16, 2024, 8:18am UTC](https://discuss.elastic.co/t/dashboard-control-empty/362781/5 "2024-07-16T08:18:56Z")

</div>

Thank you Jsanz,  
After several tests, it appears that 3 clusters ids were not setted and "valued" in the runtime field map.  
Adding these elements resolve my issue....

Thank you Jsanz;
