# Convert Service Definitions in Kibana4 Config to ES Query

**URL:** <https://discuss.elastic.co/t/convert-service-definitions-in-kibana4-config-to-es-query/59922>\
**Category:** Kibana\
**Created:** [September 6, 2016, 9:33pm UTC](https://discuss.elastic.co/t/convert-service-definitions-in-kibana4-config-to-es-query/59922 "2016-09-06T21:33:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vince5c](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@vince5c](https://discuss.elastic.co/u/vince5c)\
**Post date:** [September 6, 2016, 9:33pm UTC](https://discuss.elastic.co/t/convert-service-definitions-in-kibana4-config-to-es-query/59922/1 "2016-09-06T21:33:54Z")

</div>

I am looking for a library that can read in a dashboard's configuration and reconstruct the queries it uses. I know I can click the _request_ button in the UI to see it, but I'm looking to automate the process.

The idea is to allow other stakeholders work with the data in Kibana, and then recycle the query in other reporting applications. It would be just as easy for me to hardcode the query or use the Python ES DSL library, but that means that for every change in Kibana I need to update N more places.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [September 7, 2016, 7:14pm UTC](https://discuss.elastic.co/t/convert-service-definitions-in-kibana4-config-to-es-query/59922/2 "2016-09-07T19:14:22Z")

</div>

Hi there,

I think the only 2 ways you can access the data you want are through those Request buttons, or by observing the requests that get sent over the network.

Sorry I couldn't be more helpful!

CJ

---

<div class="post-metadata">

**Author:** ![vince5c](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@vince5c](https://discuss.elastic.co/u/vince5c)\
**Post date:** [September 8, 2016, 3:35pm UTC](https://discuss.elastic.co/t/convert-service-definitions-in-kibana4-config-to-es-query/59922/3 "2016-09-08T15:35:12Z")

</div>

Thanks for the reply. What I think I'm going to do is just tromp through the source and pull out the bits that put the snippets together as a query.

---

<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 6, 2017, 1:39pm UTC](https://discuss.elastic.co/t/convert-service-definitions-in-kibana4-config-to-es-query/59922/4 "2017-07-06T13:39:22Z")

</div>


