# How to open the discover for a special index(only know name) by a url

**URL:** <https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894>\
**Category:** Kibana\
**Created:** [March 12, 2019, 9:08am UTC](https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894 "2019-03-12T09:08:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [March 12, 2019, 9:08am UTC](https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894/1 "2019-03-12T09:08:11Z")

</div>

I wanna open the discover for a special index(only know name) by a url  
but kibana now use indexPattern.id instead of indexPattern.title as appstate in url, so we cannot do that now? id is not human friendly you know. I know we can custom the indexPattern id, but why not make the indexPattern.title as its default id? its more compat

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [March 12, 2019, 5:29pm UTC](https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894/2 "2019-03-12T17:29:41Z")

</div>

As you stated, you can set a custom ID if you need it to reflect the name of the index pattern.

You can also use the [Saved Objects API](https://www.elastic.co/guide/en/kibana/6.6/saved-objects-api.html) to retrieve a list of all index patterns dynamically and build the discover URL with that.

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [March 13, 2019, 2:14am UTC](https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894/3 "2019-03-13T02:14:52Z")

</div>

> [@whoami](#):
>
> but why not make the indexPattern.title as its default id? its more compat

but why not make the indexPattern.title as its default id? its more compat

---

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [March 19, 2019, 2:47am UTC](https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894/4 "2019-03-19T02:47:05Z")

</div>

@jen-huang

---

<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 16, 2019, 2:47am UTC](https://discuss.elastic.co/t/how-to-open-the-discover-for-a-special-index-only-know-name-by-a-url/171894/5 "2019-04-16T02:47:07Z")

</div>

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