# Custom Scripts Re: Python/Java

**URL:** <https://discuss.elastic.co/t/custom-scripts-re-python-java/112500>\
**Category:** Kibana\
**Created:** [December 19, 2017, 8:11pm UTC](https://discuss.elastic.co/t/custom-scripts-re-python-java/112500 "2017-12-19T20:11:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jturner900](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jturner900](https://discuss.elastic.co/u/jturner900)\
**Post date:** [December 19, 2017, 8:11pm UTC](https://discuss.elastic.co/t/custom-scripts-re-python-java/112500/1 "2017-12-19T20:11:16Z")

</div>

Is there a way to create scripts within ELK Stack that manipulate data? For instance, if there's a numerical or statistical library in Python that gives insight into some data from an Elastic Search, that I could produce results in Kibana without leaving ELK?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [December 20, 2017, 6:26pm UTC](https://discuss.elastic.co/t/custom-scripts-re-python-java/112500/2 "2017-12-20T18:26:31Z")

</div>

Elasticsearch can be accessed by any programming language using the API, [https://www.elastic.co/guide/en/elasticsearch/reference/6.1/docs.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/docs.html), [https://www.elastic.co/guide/en/elasticsearch/reference/6.1/search.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/search.html). You could set up your python application to pull data from Elasticsearch and calculate results. Those results could then be stored back in Elasticsearch and displayed with Kibana.

---

<div class="post-metadata">

**Author:** ![jturner900](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jturner900](https://discuss.elastic.co/u/jturner900)\
**Post date:** [December 21, 2017, 9:00pm UTC](https://discuss.elastic.co/t/custom-scripts-re-python-java/112500/3 "2017-12-21T21:00:00Z")

</div>

Thanks Nathan. My big issue is the end user won't be able to run whatever statistical test or formula in python by themselves. Is there a way to completely embed the script in ELK without leaving?

---

<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:** [January 18, 2018, 9:00pm UTC](https://discuss.elastic.co/t/custom-scripts-re-python-java/112500/4 "2018-01-18T21:00:11Z")

</div>

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