# Doubt on how dashboard is selecting the index

**URL:** https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541
**Category:** Kibana
**Created:** [May 7, 2020, 12:48pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541 "2020-05-07T12:48:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![manojkrishna561994](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@manojkrishna561994](https://discuss.elastic.co/u/manojkrishna561994)
#### Post date: [May 7, 2020, 12:48pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/1 "2020-05-07T12:48:20Z")

</div>

I have 3 indices namely index\_1, index\_2, index\_3.

I have downloaded the dashboard by not selecting the **include related objects** switch from Management \> saved objects \> export [switch off include related objects] \> My dashboard

Now, I have changed the dashboard uuid with my custom uuid and in the dashboard file i dont see any index related data. I have re-uploaded it again, now it has selected to work on index\_1.

How has it selected index\_1, when i did not mention any index id or name anywhere?? and if i want to change it to index\_2, how can i do it?

Attaching the dashboard file for reference.

[Dashboard .ndjson file](https://gist.github.com/manojkrishnak/90cc5a60e99664c2aac3d241a8873629)

---

<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: [May 7, 2020, 3:02pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/2 "2020-05-07T15:02:20Z")

</div>

Hi @manojkrishna561994,

Index pattern is referenced from visualisation and not from a dashboard object directly.

As an example: you could have a dashboard with multiple visualisations of data from different index patterns.

Dashboard ----\> Visualisation 1 ----\> index\_1  
|  
--------------\> Visualisation 2 ----\> index\_2

I hope this is helpful and gets you into right direction

---

<div class="post-metadata">

### Author: ![manojkrishna561994](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@manojkrishna561994](https://discuss.elastic.co/u/manojkrishna561994)
#### Post date: [May 7, 2020, 3:09pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/3 "2020-05-07T15:09:18Z")

</div>

Thanks Anton for your reply.

I have understood it like, my Kibana instance is already having these visualisations with indexes matching to it.  
I hope you have seen the dashboard file for which i have put the link.

Now, If i upload this dashboard file in a fresh kibana instance with no visualisations in in it, then this dashboard might not work right? correct me if im wrong.

Thanks

---

<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: [May 7, 2020, 3:44pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/4 "2020-05-07T15:44:43Z")

</div>

> [@manojkrishna561994](#):
>
> Now, If i upload this dashboard file in a fresh kibana instance with no visualisations in in it, then this dashboard might not work right? correct me if im wrong.

Yes, exactly.

In your file there is references to visualisations:

```auto
{"id":"dd7337d0-797d-11ea-b521-59fdf02d9efc","name":"panel_0","type":"visualization"}

```

And that export won't work, if your kibana is missing visualisation with id `dd7337d0-797d-11ea-b521-59fdf02d9efc` (and other).

The index pattern is actually referenced inside a visualisation object with id `dd7337d0-797d-11ea-b521-59fdf02d9efc` (and others) but there is no such object in your export. (because you turned of "export related object")

---

<div class="post-metadata">

### Author: ![manojkrishna561994](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@manojkrishna561994](https://discuss.elastic.co/u/manojkrishna561994)
#### Post date: [May 7, 2020, 3:50pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/5 "2020-05-07T15:50:51Z")

</div>

Thanks Anton it clarified.

Reg the dashboard itself im facing issue when i did management\>export [full]dashboard\> dashboard.ndjson and im trying to re-upload it using REST API's then im getting 400 error like `Child attribute is not accepted or value should be in array`. Could you pls help in resolving this issue.

Here is the link for the question asked. [Issue with reusing dashboard on another index](https://discuss.elastic.co/t/issue-with-reusing-dashboard-on-another-index/231289/3)

---

<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: [May 15, 2020, 12:17pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/6 "2020-05-15T12:17:12Z")

</div>

Hi @manojkrishna561994,

let's continue here: [Issue with reusing dashboard on another index](https://discuss.elastic.co/t/issue-with-reusing-dashboard-on-another-index/231289/3) as it seems like more generic discussion.

---

<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 12, 2020, 12:17pm UTC](https://discuss.elastic.co/t/doubt-on-how-dashboard-is-selecting-the-index/231541/7 "2020-06-12T12:17:13Z")

</div>

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