# Create copy of visualization that uses a different index as data source?

**URL:** <https://discuss.elastic.co/t/create-copy-of-visualization-that-uses-a-different-index-as-data-source/256382>\
**Category:** Kibana\
**Created:** [November 23, 2020, 4:51pm UTC](https://discuss.elastic.co/t/create-copy-of-visualization-that-uses-a-different-index-as-data-source/256382 "2020-11-23T16:51:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [November 23, 2020, 4:51pm UTC](https://discuss.elastic.co/t/create-copy-of-visualization-that-uses-a-different-index-as-data-source/256382/1 "2020-11-23T16:51:54Z")

</div>

I have found that the visualizations (line charts, tables) are tied to its data source, and no easy way to edit it. Often, I have built a complex visualization that I can use for another index as a starting point, but I have not found a way to reuse that same visualization because the data source is tied to the visualization.

- Is there in fact a way to edit the data source of the visualization?
- If not, can this potentially be added?

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 23, 2020, 11:41pm UTC](https://discuss.elastic.co/t/create-copy-of-visualization-that-uses-a-different-index-as-data-source/256382/2 "2020-11-23T23:41:42Z")

</div>

Check out [https://github.com/elastic/kibana/issues/69423](https://github.com/elastic/kibana/issues/69423).

---

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [November 26, 2020, 2:23pm UTC](https://discuss.elastic.co/t/create-copy-of-visualization-that-uses-a-different-index-as-data-source/256382/3 "2020-11-26T14:23:58Z")

</div>

I have read the Github issue but I am not sure how this applies. The github issue talks about the steps of copying a visualization from one dashboard to another, without mentioning anything about changing ES indices.

Perhaps I was unclear about what I meant by “data source” in my original message.

This is what I want to do:

- Create a visualization using ES index `foo-*`
- Make a copy of that visualization as a new viz
- Have that visualization use ES index `bar-*` instead as data source.

---

<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:** [December 24, 2020, 2:24pm UTC](https://discuss.elastic.co/t/create-copy-of-visualization-that-uses-a-different-index-as-data-source/256382/4 "2020-12-24T14:24:01Z")

</div>

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