# Getting stored scripts

**URL:** <https://discuss.elastic.co/t/getting-stored-scripts/104455>\
**Category:** Elasticsearch\
**Created:** [October 18, 2017, 8:59pm UTC](https://discuss.elastic.co/t/getting-stored-scripts/104455 "2017-10-18T20:59:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTaylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jtaylor/32/13179_2.png) [@JTaylor](https://discuss.elastic.co/u/JTaylor)\
**Post date:** [October 18, 2017, 8:59pm UTC](https://discuss.elastic.co/t/getting-stored-scripts/104455/1 "2017-10-18T20:59:17Z")

</div>

I have used the \_scripts index to store 2 different queries that an application will be calling, but in order to do a dev-\>prod deployment, we would like to simply "get" the scripts that we have in the index and move them to the prod server.

Is there an endpoint or other method that will list the available scripts that Elastic can use?

I cannot find anything on the /\_scripts endpoint that would do this accurately, as \_scripts requires a name, and does not accept wildcards.

We use Elastic Cloud, so we do not have direct file access, but we do have the option to use script files if there's not another way, although to me, this would not be as ideal.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 18, 2017, 11:54pm UTC](https://discuss.elastic.co/t/getting-stored-scripts/104455/2 "2017-10-18T23:54:01Z")

</div>

I do not think it is based on my previous findings:

> <https://github.com/elastic/elasticsearch/issues/25179>

There was some refactoring going on in this part of the code, so I held off  
adding the functionality. I have not looked at it again since I created the  
issue.

---

<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:** [November 15, 2017, 11:54pm UTC](https://discuss.elastic.co/t/getting-stored-scripts/104455/3 "2017-11-15T23:54:11Z")

</div>

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