# Changing Index on Aggregation based widgets after Copying it from another dashboard

**URL:** <https://discuss.elastic.co/t/changing-index-on-aggregation-based-widgets-after-copying-it-from-another-dashboard/302069>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [April 11, 2022, 6:20am UTC](https://discuss.elastic.co/t/changing-index-on-aggregation-based-widgets-after-copying-it-from-another-dashboard/302069 "2022-04-11T06:20:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![curious\_ands](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@curious\_ands](https://discuss.elastic.co/u/curious_ands)\
**Post date:** [April 11, 2022, 6:20am UTC](https://discuss.elastic.co/t/changing-index-on-aggregation-based-widgets-after-copying-it-from-another-dashboard/302069/1 "2022-04-11T06:20:52Z")

</div>

Hi,  
I am having the dashboard1 which is created using index1 data. The dashboard contains all types of visualization but I want to talk about aggregation based widgets eg. Gauge, Goal, PI etc.  
When I copy the aggregation based widgets from dashboard1 to dashboard2, The index in dashboard2 remains the same as index1.  
I want to change that index1 to index2, but I can not find any option or settings available there.  
Can you help you, How can I achieve this?

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [April 13, 2022, 3:07pm UTC](https://discuss.elastic.co/t/changing-index-on-aggregation-based-widgets-after-copying-it-from-another-dashboard/302069/2 "2022-04-13T15:07:22Z")

</div>

Hi  
You can clone widgets on a dashboard

 ![Bildschirmfoto 2022-04-13 um 17.00.34](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4d4578645f3e946bc8c287ad65cd009d5bea985d.png)

however you can't simply change in index pattern of the cloned visualizations

> <https://github.com/elastic/kibana/issues/17542>
>
> Similar to how discover does it. Rather than requiring a new visualization to b…e built, add a field when editing a visualization that lets you change the index pattern on it. We need to figure out how to handle errors when a visualization was built with fields from the original index that don't exist in the new one.
> 
> Splitting this particular part out of this issue: https://github.com/elastic/kibana/issues/3668 which includes both dashboards and visualizations. Changing the index pattern on a dashboard is a much different problem and is now covered by this issue: https://github.com/elastic/kibana/issues/16917
> 
> It will be helpful for us to split these issues out and see which are the most important to the community.
> 
> also related: https://github.com/elastic/kibana/issues/16831

Using our new default way to create visualizations, Lens

> **[Introducing Kibana Lens: An easy, intuitive way to explore data](https://www.elastic.co/blog/introducing-kibana-lens)**
>
> Kibana Lens is focused on ease of use, visualization best practices, and flexibility. You can build a visualization simply by dragging and dropping a data field into a window, and the smart suggestions built into Lens provide you with new ways of...

Best,  
Matthias

---

<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:** [May 11, 2022, 3:07pm UTC](https://discuss.elastic.co/t/changing-index-on-aggregation-based-widgets-after-copying-it-from-another-dashboard/302069/3 "2022-05-11T15:07:37Z")

</div>

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