# How to apply a kibana dashboard to a different index?

**URL:** https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108
**Category:** Kibana
**Created:** [February 18, 2016, 7:46am UTC](https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108 "2016-02-18T07:46:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Natarajan\_venkataram](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Natarajan\_venkataram](https://discuss.elastic.co/u/Natarajan_venkataram)
#### Post date: [February 18, 2016, 7:46am UTC](https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108/1 "2016-02-18T07:46:22Z")

</div>

I'm testing kibana with logs, and everytime create a new index ( with same fields), I'm recreating the entire kibana dashboard afresh, which seems to be a duplicate task. Is there any way to apply a dashboard/visualization to a new index. Please let me know.

---

<div class="post-metadata">

### Author: ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)
#### Post date: [February 18, 2016, 8:01am UTC](https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108/2 "2016-02-18T08:01:49Z")

</div>

When adding index into Kibana, you can use asterisk \* to have Kibana search in multiple indexes. For example, if your testing indexes are `myindex-1, myindex-2, myindex-3`, when creating index pattern in Kibana, use `myindex-*`. If you use time based indexes, you can also specify date pattern like YYYY.MM.DD. For latest Kibana 4.4.0, just use asterisk.

---

<div class="post-metadata">

### Author: ![Natarajan\_venkataram](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Natarajan\_venkataram](https://discuss.elastic.co/u/Natarajan_venkataram)
#### Post date: [February 18, 2016, 8:08am UTC](https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108/3 "2016-02-18T08:08:22Z")

</div>

For me, I'm using the same index for test i.e. myindex-1, myindex-2 and myindex-3 in my case will have overlapping values. If I do this way, then I'm bound to have duplicates, which might give me wrong picture.

One method I'm currently using is to export the visualizations and changing the index name to the new index and importing it back to Kibana.

I think it would be good if we can change the index of a visualization in the UI itself. Currently we cannot change the index of a saved visualization.

---

<div class="post-metadata">

### Author: ![stormpython](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stormpython/32/7190_2.png) [@stormpython](https://discuss.elastic.co/u/stormpython)
#### Post date: [February 18, 2016, 6:57pm UTC](https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108/4 "2016-02-18T18:57:09Z")

</div>

Natarajan,

Currently, you can change the index name in the URI.

```auto
http://localhost:5601/app/kibana#/visualize/create?type=table&indexPattern=logstash-*&_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-60d,mode:quick,to:now))&_a=(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((id:'1',params:(),schema:metric,type:count),(id:'2',params:(field:'@tags.raw',order:desc,orderBy:_term,size:5),schema:bucket,type:terms)),listeners:(),params:(perPage:10,showMeticsAtAllLevels:!f,showPartialRows:!f),title:'New%20Visualization',type:table))

```

The entire state is in the URI. But this is bound to change. But for now, you can simply change the

```auto
...&indexPattern=newIndex&....

```

---

<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: [July 6, 2017, 2:01pm UTC](https://discuss.elastic.co/t/how-to-apply-a-kibana-dashboard-to-a-different-index/42108/5 "2017-07-06T14:01:52Z")

</div>


