# Migrating the Kibana index

**URL:** https://discuss.elastic.co/t/migrating-the-kibana-index/107749
**Category:** Elasticsearch
**Created:** [November 15, 2017, 1:18pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749 "2017-11-15T13:18:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Maekee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maekee/32/21708_2.png) [@Maekee](https://discuss.elastic.co/u/Maekee)
#### Post date: [November 15, 2017, 1:18pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749/1 "2017-11-15T13:18:46Z")

</div>

Hello,  
Am upgrading my ELK-stack to 6.0e but get stuck on migrating the .kibana index to the .kibana-6 described here:  
[https://www.elastic.co/guide/en/kibana/6.0/migrating-6.0-index.html](https://www.elastic.co/guide/en/kibana/6.0/migrating-6.0-index.html)

My Q is.. how do run create the .kibana-6 index?  
Trying to do this in PowerShell.. but am open to other ways.

Running on Windows.  
I have tried this:  
Invoke-RestMethod -Uri '[http://elasticsearch:9200/.kibana-6/](http://elasticsearch:9200/.kibana-6/)' -Method Put -Body $JSON -ContentType "application/json"  
Where the $JSON is the content from the article. Step 2

Get this error:  
unknown setting [index.mapping.single\_type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

Thanks  
/M

---

<div class="post-metadata">

### Author: ![Maekee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maekee/32/21708_2.png) [@Maekee](https://discuss.elastic.co/u/Maekee)
#### Post date: [November 15, 2017, 7:04pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749/2 "2017-11-15T19:04:06Z")

</div>

Worked to upload when i did this:

> To perform this migration without downtime, you will need to be running Kibana 5.6. This is the only version which supports both of the index types. If you are running a version prior to 5.6, you will need to omit index.format and index.mapping.single\_type from the second step.

Strange, because i am running 5.6.2, and that is not prior till 5.6.

---

<div class="post-metadata">

### Author: ![Maekee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maekee/32/21708_2.png) [@Maekee](https://discuss.elastic.co/u/Maekee)
#### Post date: [November 15, 2017, 7:14pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749/3 "2017-11-15T19:14:14Z")

</div>

Here is how i did it:  
[https://github.com/maekee/Elasticsearch/blob/master/Kibana/MigratingToKibana6.ps1](https://github.com/maekee/Elasticsearch/blob/master/Kibana/MigratingToKibana6.ps1)

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [November 15, 2017, 11:22pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749/4 "2017-11-15T23:22:22Z")

</div>

@Maekee,

I am unable to reproduce that error on 5.6.2. Can you verify you are re-indexing against 5.6.2, and not 6.0?

---

<div class="post-metadata">

### Author: ![Maekee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maekee/32/21708_2.png) [@Maekee](https://discuss.elastic.co/u/Maekee)
#### Post date: [November 16, 2017, 3:14pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749/5 "2017-11-16T15:14:49Z")

</div>

Have removed the .kibana index (as the last step in the article).  
But maybe the kibana index was not upgraded during my minor upgrades and was in 5.0.

So its not enough to see that i am running kibana in 5.6.2 because the index was maybe not reindexed since the first version i installed which was round 5.5.x

---

<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 14, 2017, 3:14pm UTC](https://discuss.elastic.co/t/migrating-the-kibana-index/107749/6 "2017-12-14T15:14:53Z")

</div>

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