# Kibana migrates index every time it starts

**URL:** <https://discuss.elastic.co/t/kibana-migrates-index-every-time-it-starts/291402>\
**Category:** Kibana\
**Tags:** reindex\
**Created:** [December 10, 2021, 8:48am UTC](https://discuss.elastic.co/t/kibana-migrates-index-every-time-it-starts/291402 "2021-12-10T08:48:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![driveirk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/driveirk/32/102253_2.png) [@driveirk](https://discuss.elastic.co/u/driveirk)\
**Post date:** [December 10, 2021, 8:48am UTC](https://discuss.elastic.co/t/kibana-migrates-index-every-time-it-starts/291402/1 "2021-12-10T08:48:42Z")

</div>

Hey!  
We have a cluster of 4 servers with Elasticsearch and kibans 7.15.1.  
Every time we restart kibana, reindex is started:

```auto
{
  "tasks": {
    "GrebRFKTSyqTXAWk3FwIUg:6687096": {
      "node": "GrebRFKTSyqTXAWk3FwIUg",
      "id": 6687096,
      "type": "transport",
      "action": "indices:data/write/update/byquery",
      "status": {
        "total": 1746548,
        "updated": 13000,
        "created": 0,
        "deleted": 0,
        "batches": 14,
        "version_conflicts": 0,
        "noops": 0,
        "retries": {
          "bulk": 0,
          "search": 0
        },
        "throttled_millis": 0,
        "requests_per_second": -1,
        "throttled_until_millis": 0
      },
      "description": "update-by-query [.kibana_7.15.1_001]",
      "start_time_in_millis": 1639125506504,
      "running_time_in_nanos": 26438268970,
      "cancellable": true,
      "cancelled": false,
      "headers": {}
    }
  }
}

```

Re-index takes about 3-5 hours. What can I do to make kibana restart faster?

---

<div class="post-metadata">

**Author:** ![driveirk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/driveirk/32/102253_2.png) [@driveirk](https://discuss.elastic.co/u/driveirk)\
**Post date:** [December 13, 2021, 5:03am UTC](https://discuss.elastic.co/t/kibana-migrates-index-every-time-it-starts/291402/2 "2021-12-13T05:03:44Z")

</div>

I uploaded index to the kibana test server, the problem is reproduced there too.  
Removed all shorturl older than 30 days, index size decreased by 2 times, restart now takes 13 minutes.

Maybe there is a way to turn off this index update when restarting kibana?

---

<div class="post-metadata">

**Author:** ![driveirk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/driveirk/32/102253_2.png) [@driveirk](https://discuss.elastic.co/u/driveirk)\
**Post date:** [December 13, 2021, 11:23am UTC](https://discuss.elastic.co/t/kibana-migrates-index-every-time-it-starts/291402/4 "2021-12-13T11:23:44Z")

</div>

Here is the solution

```auto
migrations.enableV2: false

```

---

<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:** [January 10, 2022, 11:24am UTC](https://discuss.elastic.co/t/kibana-migrates-index-every-time-it-starts/291402/5 "2022-01-10T11:24:36Z")

</div>

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