# Way to automatically output Discover query

**URL:** <https://discuss.elastic.co/t/way-to-automatically-output-discover-query/91677>\
**Category:** Elasticsearch\
**Created:** [July 3, 2017, 5:01pm UTC](https://discuss.elastic.co/t/way-to-automatically-output-discover-query/91677 "2017-07-03T17:01:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lindsey](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@Lindsey](https://discuss.elastic.co/u/Lindsey)\
**Post date:** [July 3, 2017, 5:01pm UTC](https://discuss.elastic.co/t/way-to-automatically-output-discover-query/91677/1 "2017-07-03T17:01:02Z")

</div>

Hello!

First off, I wanted to mention that I'm a n intern and elastic in general is VERY new to me. I am trying to pull data off of elasticsearch so I can graph it with [Plot.ly](http://Plot.ly), however I am unsure of which path to take.

I went on the the Discover tab and selected the index that I needed, and then added the respective fields that I needed. Now it looks like I have a nifty little table!

If I wanted to write a script that would allow me to pull this data and put it in a queue ( I want to wait till the queue has seven entries before I graph it), what would be the best way of doing this? Thank you in advance!

Cheers,  
Lindsey

---

<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 31, 2017, 5:01pm UTC](https://discuss.elastic.co/t/way-to-automatically-output-discover-query/91677/2 "2017-07-31T17:01:31Z")

</div>

Closed on July 31, 2017, 5:01pm UTC

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