# \`defaultIndex\` value silently set to Kibana version

**URL:** <https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793>\
**Category:** Kibana\
**Created:** [June 17, 2017, 5:31am UTC](https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793 "2017-06-17T05:31:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Li\_Xu](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@Li\_Xu](https://discuss.elastic.co/u/Li_Xu)\
**Post date:** [June 17, 2017, 5:31am UTC](https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793/1 "2017-06-17T05:31:43Z")

</div>

We are seeing a weird situation where Kibana UI will fail to function complaining about `Error: Could not locate that index-pattern (id: 5.3.1)` while loading default index pattern in Chrome console. We are able to consistently reproduce it with a clean vanilla ES and Kibana installation both at 5.3.1. The only thing special is that we have a custom ES plugin installed but not in use at all. Without the plugin, everything works fine. With the ES plugin, older versions of Kibana work until 5.2.0.

Further digging reveals that instead leaving it null by default, Kibana 5.2.0+ is sending this update to ES when the UI is first loaded:

```
POST /.kibana/config/5.3.1/_update HTTP/1.1
content-type: application/json
Host: elasticsearch:9200
Content-Length: 32
Connection: keep-alive

{"doc":{"defaultIndex":"5.3.1"}}

```

The result:

```
$ curl http://localhost:9200/.kibana/index-pattern/_search?pretty
{
  "took" : 2,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "hits" : {
    "total" : 1,
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : ".kibana",
        "_type" : "config",
        "_id" : "5.3.1",
        "_score" : 1.0,
        "_source" : {
          "buildNum" : 14844,
          "defaultIndex" : "5.3.1"
        }
      }
    ]
  }
}

```

So there's the reference to `5.3.1` but it doesn't exist as an index pattern. The UI broke.

I was able to workaround it by adding an index pattern and setting the defaultIndex to it. But still, I don't get it why Kibaba doesn't send the update request to an ES instance without our plugin.

Any pointer would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [June 17, 2017, 6:37am UTC](https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793/2 "2017-06-17T06:37:53Z")

</div>

It sure seems its something with the plugin .Our plugin API is not set in stone and is changing often, so I am guessing the plugin you are using did work ok with 5.2 but does not work correctly with never versions. Is that a custom plugin or something available from the web ?

---

<div class="post-metadata">

**Author:** ![Li\_Xu](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@Li\_Xu](https://discuss.elastic.co/u/Li_Xu)\
**Post date:** [June 17, 2017, 7:16am UTC](https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793/3 "2017-06-17T07:16:22Z")

</div>

It's our [proprietary plugin](https://www.rosette.com/elastic/#identity-resolution). Note that it is an ElasticSearch not Kibana plugin, and I don't see how Kibana could even be aware of its existence.

---

<div class="post-metadata">

**Author:** ![bwsawyer](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@bwsawyer](https://discuss.elastic.co/u/bwsawyer)\
**Post date:** [June 20, 2017, 5:42pm UTC](https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793/4 "2017-06-20T17:42:08Z")

</div>

We've discovered that the issue is indeed in our plugin. This topic can be closed.

---

<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:** [July 18, 2017, 5:42pm UTC](https://discuss.elastic.co/t/defaultindex-value-silently-set-to-kibana-version/89793/5 "2017-07-18T17:42:14Z")

</div>

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