# How to change index pattern

**URL:** <https://discuss.elastic.co/t/how-to-change-index-pattern/304925>\
**Category:** Kibana\
**Created:** [May 17, 2022, 11:19am UTC](https://discuss.elastic.co/t/how-to-change-index-pattern/304925 "2022-05-17T11:19:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wagnar](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wagnar](https://discuss.elastic.co/u/wagnar)\
**Post date:** [May 17, 2022, 11:19am UTC](https://discuss.elastic.co/t/how-to-change-index-pattern/304925/1 "2022-05-17T11:19:17Z")

</div>

I have two different index in Elasticsearch prod and dev. I developed everything in dev pattern and after the export I changed the ID for index pattern in ndjson file. after import it is throwing error and I am not able to read a single visualization. Can someone please help me with this. and what is the best suitable way to maintain dev and prod environment

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [May 17, 2022, 1:51pm UTC](https://discuss.elastic.co/t/how-to-change-index-pattern/304925/2 "2022-05-17T13:51:58Z")

</div>

How did you find your pattern id? Maybe you have put wrong ID.

---

<div class="post-metadata">

**Author:** ![wagnar](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wagnar](https://discuss.elastic.co/u/wagnar)\
**Post date:** [May 17, 2022, 1:54pm UTC](https://discuss.elastic.co/t/how-to-change-index-pattern/304925/3 "2022-05-17T13:54:17Z")

</div>

> [@Rios](#):
>
> nd your pattern id? Maybe you have put wrong ID.

Thanks a lot for your reply.  
I got it from URL, It is working now there is ID and Name we need to change both the things I was changing only ID not name and because of that kibana was throwing issue

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [May 17, 2022, 1:59pm UTC](https://discuss.elastic.co/t/how-to-change-index-pattern/304925/4 "2022-05-17T13:59:02Z")

</div>

Yes,indeed. Only need to changed pattern name&id, from the new environment.

---

<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 14, 2022, 1:59pm UTC](https://discuss.elastic.co/t/how-to-change-index-pattern/304925/5 "2022-06-14T13:59:43Z")

</div>

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