# How to apply different index patterns to same dashboard and its widgets?

**URL:** <https://discuss.elastic.co/t/how-to-apply-different-index-patterns-to-same-dashboard-and-its-widgets/248723>\
**Category:** Kibana\
**Created:** [September 15, 2020, 6:29pm UTC](https://discuss.elastic.co/t/how-to-apply-different-index-patterns-to-same-dashboard-and-its-widgets/248723 "2020-09-15T18:29:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSMilestone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsmilestone/32/73339_2.png) [@DSMilestone](https://discuss.elastic.co/u/DSMilestone)\
**Post date:** [September 15, 2020, 6:29pm UTC](https://discuss.elastic.co/t/how-to-apply-different-index-patterns-to-same-dashboard-and-its-widgets/248723/1 "2020-09-15T18:29:45Z")

</div>

I have created a kibana dashboard for katalon reports for my API services. For that I have created a index pattern ` api_katalon_reports*`. all the widgets inside that dashboard use this index pattern. Now, I have katalon reports for UI of my project. For that I use `ui_katalon_reports*` index pattern. Instead of creating new dashboard and widgets in order to view UI katalon report data, is there a way to apply `ui_katalon_reports*` index pattern to same dashboard which I used to view API katalon reports data? Note: UI and API reports have same fields.

---

<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:** [September 16, 2020, 2:42pm UTC](https://discuss.elastic.co/t/how-to-apply-different-index-patterns-to-same-dashboard-and-its-widgets/248723/2 "2020-09-16T14:42:06Z")

</div>

Hi @DSMilestone,

I think I'd try to export your dashboard together with all your visualizations as saved objects: [https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html](https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html)

Then in that export, I'd try to replace all occurrences of original index pattern id (id of `api_katalon_reports*`) with another index pattern id (id of `ui_katalon_reports*`).

After edits, I'd import that back to Kibana as a new objects.

In the end you should get 2 dashboards for different index patterns.  
And 2x visualisations.

Some caveats I think of from top of my head:

1. Kibana index pattern is also a saved object, so in your export, make sure you not changing original index pattern.
2. Some visualizations (e.g. TSVB) don't use Kibana Index Patterns, instead they use elastic index strings directly e.g. `api_katalon_reports*`, so also look for and replace such occurrences in your export.

I didn't test this approach, but I think it should work.  
If you are going to try this out, first try it on environment where breaking existing widgets won't be a problem 🙂

---

<div class="post-metadata">

**Author:** ![DSMilestone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsmilestone/32/73339_2.png) [@DSMilestone](https://discuss.elastic.co/u/DSMilestone)\
**Post date:** [September 17, 2020, 12:13pm UTC](https://discuss.elastic.co/t/how-to-apply-different-index-patterns-to-same-dashboard-and-its-widgets/248723/3 "2020-09-17T12:13:49Z")

</div>

Thank you for your reply! I'll try this... 🙂

---

<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:** [October 15, 2020, 12:14pm UTC](https://discuss.elastic.co/t/how-to-apply-different-index-patterns-to-same-dashboard-and-its-widgets/248723/4 "2020-10-15T12:14:01Z")

</div>

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