# Create my own Discover to manage my data

**URL:** <https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765>\
**Category:** Kibana\
**Created:** [July 19, 2018, 2:32pm UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765 "2018-07-19T14:32:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asallemi](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@asallemi](https://discuss.elastic.co/u/asallemi)\
**Post date:** [July 19, 2018, 2:32pm UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765/1 "2018-07-19T14:32:17Z")

</div>

Hello,

I asked in previous [topic](https://discuss.elastic.co/t/discover-edit-document-in-the-table-view/140342/2) about the possibility of handling the Elasticsearch data via Discover UI. Unfortunately, this is not possible yet (you can find here the issue created on the [github repo](https://github.com/elastic/kibana/issues/20916)).

So, I decided to create my own Discover 🤪  
I started by displaying the index list in select component (using this [app](https://github.com/TrumanDu/indices_view)) 🕶. But I don't have any idea how to display the data (UI and technically) 😭

 ![Sans%20titre](https://us1.discourse-cdn.com/elastic/original/3X/6/8/6891608c4de0738b8df1f1ee098ecdd851ffa103.png)

The question: is there an example which it can help me to get data in each select of indexName ? (in the Kibana server side). I'll appreciate it if the example is a source code.

Thanks for advance.  
Warm regards,  
Akrem.

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [July 19, 2018, 7:56pm UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765/2 "2018-07-19T19:56:10Z")

</div>

Hey, there's a couple ways to get this done so I'll do a quick rundown, but there's room for creativity. We can dive deeper into any of these parts too, let me know.

1. server: create a route that accepts an index pattern, and queries elasticsearch [example](https://github.com/elastic/kibana/blob/f0cc432fafd6f7053f32d493aba8b576dcb20539/src/core_plugins/metrics/server/routes/fields.js#L24), [server docs](https://hapijs.com/api/14.2.0)
2. server: in the route handler, you can use our client library for communicating with elasticsearch [example](https://www.elastic.co/guide/en/kibana/6.3/development-elasticsearch.html), [client docs](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html)
3. ajax call from the browser

---

<div class="post-metadata">

**Author:** ![asallemi](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@asallemi](https://discuss.elastic.co/u/asallemi)\
**Post date:** [July 20, 2018, 9:09am UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765/3 "2018-07-20T09:09:22Z")

</div>

> [@jbudz](#):
>
> server: create a route that accepts an index pattern, and queries elasticsearch [example](https://github.com/elastic/kibana/blob/f0cc432fafd6f7053f32d493aba8b576dcb20539/src/core_plugins/metrics/server/routes/fields.js#L24), [server docs](https://hapijs.com/api/14.2.0)

For the route, I need a POST method to specify in the request the selected indexName, nah ?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [July 20, 2018, 8:40pm UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765/4 "2018-07-20T20:40:20Z")

</div>

Depends on how specific the request gets. If you want to include a large body in the request you'll want a POST. An example may be including an elasticsearch query.

If you only want results from an index name, a GET should be sufficient.

---

<div class="post-metadata">

**Author:** ![asallemi](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@asallemi](https://discuss.elastic.co/u/asallemi)\
**Post date:** [July 23, 2018, 7:20am UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765/5 "2018-07-23T07:20:06Z")

</div>

> [@jbudz](#):
>
> index name

The index list is dynamic, so the GET isn't sufficient in this case.  
Thanks 🙂

---

<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:** [August 20, 2018, 7:21am UTC](https://discuss.elastic.co/t/create-my-own-discover-to-manage-my-data/140765/6 "2018-08-20T07:21:35Z")

</div>

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