# Is there a way to update index-pattern \_id?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-update-index-pattern-id/171985>\
**Category:** Elasticsearch\
**Created:** [March 12, 2019, 2:59pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-update-index-pattern-id/171985 "2019-03-12T14:59:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Griffiths](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@Andrew\_Griffiths](https://discuss.elastic.co/u/Andrew_Griffiths)\
**Post date:** [March 12, 2019, 2:59pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-update-index-pattern-id/171985/1 "2019-03-12T14:59:23Z")

</div>

I have had to recreate some index-patterns but they have created with random id's

example:

```
index-pattern:29adfc30-09cb-11e9-9616-6fa1143e677c","_score":3.0726933,"_source":{"index-pattern":{"title":"elastalert*","timeFieldName":"@timestamp","fields":"[{\"name\":\"@timestamp\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}

```

"\_index":".kibana\_1","\_type":"doc","\_id":"index-pattern:a31a3ca0-3e8c-11e9-8a92-9533e7544ef7","\_score":3.0726933,"\_source":{"index-pattern":{"title":"logs-endpoint-\*","timeFieldName":"@timestamp","fields":"

previously the index-pattern was the same as the title - is there a way to change this as its broken some of the associated mappings and visualizations.

---

<div class="post-metadata">

**Author:** ![Andrew\_Griffiths](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@Andrew\_Griffiths](https://discuss.elastic.co/u/Andrew_Griffiths)\
**Post date:** [March 12, 2019, 3:39pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-update-index-pattern-id/171985/2 "2019-03-12T15:39:04Z")

</div>

Self Solved 🙂

exported the index-pattern using saved-objects  
edited the \_id in text editor  
deleted the faulty index-patterns in saved objects  
imported index-pattern from the edited file

---

<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:** [April 9, 2019, 3:39pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-update-index-pattern-id/171985/3 "2019-04-09T15:39:07Z")

</div>

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