# How to skip kibana discover and directly go to dashboard, and use the index pattern I created by directly using elasticsearch APIs

**URL:** <https://discuss.elastic.co/t/how-to-skip-kibana-discover-and-directly-go-to-dashboard-and-use-the-index-pattern-i-created-by-directly-using-elasticsearch-apis/89822>\
**Category:** Kibana\
**Created:** [June 17, 2017, 11:20pm UTC](https://discuss.elastic.co/t/how-to-skip-kibana-discover-and-directly-go-to-dashboard-and-use-the-index-pattern-i-created-by-directly-using-elasticsearch-apis/89822 "2017-06-17T23:20:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xwang12345](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xwang12345](https://discuss.elastic.co/u/xwang12345)\
**Post date:** [June 17, 2017, 11:20pm UTC](https://discuss.elastic.co/t/how-to-skip-kibana-discover-and-directly-go-to-dashboard-and-use-the-index-pattern-i-created-by-directly-using-elasticsearch-apis/89822/1 "2017-06-17T23:20:32Z")

</div>

I am trying to import the index-pattern as well as visualization object, dashboard etc not going through kibana GUI but elasticsearch API. After I have the data ready(The .kibana index is fully populated). It keep asking me to "Configure an index pattern", and keep redirect my request to the discover page.

Is there any way to by pass that? My dashboard and visual obejct as well as the index-pattern I created are already there in the .kibana index. I do not want to create another index-pattern

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [June 19, 2017, 5:48pm UTC](https://discuss.elastic.co/t/how-to-skip-kibana-discover-and-directly-go-to-dashboard-and-use-the-index-pattern-i-created-by-directly-using-elasticsearch-apis/89822/2 "2017-06-19T17:48:20Z")

</div>

Hi Xin,

You want to set the defaultIndex in the config doc in the .kibana index.  
You can see it if you run this query in the dev tools console;

```auto
GET .kibana/config/_search
{
  "query": {
    "match_all": {}
  }
}

```

Near the very bottom you see the defaultIndex (which in this case is already set);

```auto
{
  "took": 0,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 1,
    "hits": [
      {
        "_index": ".kibana",
        "_type": "config",
        "_id": "5.5.0",
        "_score": 1,
        "_source": {
          "buildNum": 15347,
          "xPackMonitoring:allowReport": true,
          "xPackMonitoring:showBanner": true,
          "defaultIndex": "logstash-*"
        }
      }
    ]
  }
}

```

To set that value if it's undefined, or to change it, you can use the update api like this;

```auto
POST .kibana/config/5.5.0/_update
{
  "doc" : {
    "defaultIndex": "metricbeat-*"
  }
}

```

Where `5.5.0` is the id (shown as \_id) above.

WARNING: modifying the .kibana index directly like this is unsupported. Use at your own risk. Backup, Snapshot, etc.

Reference: [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html)

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![xwang12345](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xwang12345](https://discuss.elastic.co/u/xwang12345)\
**Post date:** [June 20, 2017, 5:14pm UTC](https://discuss.elastic.co/t/how-to-skip-kibana-discover-and-directly-go-to-dashboard-and-use-the-index-pattern-i-created-by-directly-using-elasticsearch-apis/89822/3 "2017-06-20T17:14:56Z")

</div>

This is what I am doing now, Thanks  
Xin

---

<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:15pm UTC](https://discuss.elastic.co/t/how-to-skip-kibana-discover-and-directly-go-to-dashboard-and-use-the-index-pattern-i-created-by-directly-using-elasticsearch-apis/89822/4 "2017-07-18T17:15:03Z")

</div>

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