# Python UDF in Kibana

**URL:** <https://discuss.elastic.co/t/python-udf-in-kibana/328933>\
**Category:** Kibana\
**Created:** [March 30, 2023, 12:28pm UTC](https://discuss.elastic.co/t/python-udf-in-kibana/328933 "2023-03-30T12:28:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANUBHAV\_GUPTA](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@ANUBHAV\_GUPTA](https://discuss.elastic.co/u/ANUBHAV_GUPTA)\
**Post date:** [March 30, 2023, 12:28pm UTC](https://discuss.elastic.co/t/python-udf-in-kibana/328933/1 "2023-03-30T12:28:53Z")

</div>

Can we build python UDF or any other language's UDF to transform data queried from Kibana dev-tools console?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [March 31, 2023, 1:08pm UTC](https://discuss.elastic.co/t/python-udf-in-kibana/328933/2 "2023-03-31T13:08:51Z")

</div>

Hi @ANUBHAV_GUPTA,

I see you've asked a similar question in Slack, but adding the answer here for completeness.

Does it have to be inside Kibana? I can think of alternatives such as writing a Python script using the [Elasticsearch Python client](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html) to do what you want to do. Otherwise, it might be worth having a look at writing a [custom plugin for Kibana](https://www.elastic.co/guide/en/kibana/current/external-plugin-development.html).

In future try to avoid duplicate posting of questions so the answer is in one place.

---

<div class="post-metadata">

**Author:** ![ANUBHAV\_GUPTA](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@ANUBHAV\_GUPTA](https://discuss.elastic.co/u/ANUBHAV_GUPTA)\
**Post date:** [March 31, 2023, 1:27pm UTC](https://discuss.elastic.co/t/python-udf-in-kibana/328933/3 "2023-03-31T13:27:26Z")

</div>

Hi @carly.richmond,  
Yes our usecase demands the python script to run inside Kibana.  
Will look into plugin option.

---

<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:** [April 28, 2023, 1:28pm UTC](https://discuss.elastic.co/t/python-udf-in-kibana/328933/4 "2023-04-28T13:28:20Z")

</div>

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