# How do i list all stored scripts? GET \_scripts/ doesn't work

**URL:** <https://discuss.elastic.co/t/how-do-i-list-all-stored-scripts-get--scripts-doesnt-work/83055>\
**Category:** Elasticsearch\
**Created:** [April 20, 2017, 12:48pm UTC](https://discuss.elastic.co/t/how-do-i-list-all-stored-scripts-get--scripts-doesnt-work/83055 "2017-04-20T12:48:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbje-saxo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbje-saxo/32/19779_2.png) [@mbje-saxo](https://discuss.elastic.co/u/mbje-saxo)\
**Post date:** [April 20, 2017, 12:48pm UTC](https://discuss.elastic.co/t/how-do-i-list-all-stored-scripts-get--scripts-doesnt-work/83055/1 "2017-04-20T12:48:29Z")

</div>

We are using filebeats with ingest node and stored scripts to ingest thousand of seperate log files into elastic - we have 100's of pipelines with stored painless scripts - i can list the pipelines easily and see the scripts used by the pipelines, but i cannot find a way to list all scripts and figure out which scripts we are no longer using.

does this functionality really not exist or have i missed something?

---

<div class="post-metadata">

**Author:** ![mbje-saxo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbje-saxo/32/19779_2.png) [@mbje-saxo](https://discuss.elastic.co/u/mbje-saxo)\
**Post date:** [April 27, 2017, 10:43am UTC](https://discuss.elastic.co/t/how-do-i-list-all-stored-scripts-get--scripts-doesnt-work/83055/2 "2017-04-27T10:43:08Z")

</div>

Turns out you can access this data through \_cluster/state/metadata

---

<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:** [May 25, 2017, 10:47am UTC](https://discuss.elastic.co/t/how-do-i-list-all-stored-scripts-get--scripts-doesnt-work/83055/3 "2017-05-25T10:47:38Z")

</div>

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