# Using Groovy as script language instead of Expression

**URL:** <https://discuss.elastic.co/t/using-groovy-as-script-language-instead-of-expression/661>\
**Category:** Kibana\
**Created:** [May 14, 2015, 3:08am UTC](https://discuss.elastic.co/t/using-groovy-as-script-language-instead-of-expression/661 "2015-05-14T03:08:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pollylaw](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@pollylaw](https://discuss.elastic.co/u/pollylaw)\
**Post date:** [May 14, 2015, 3:08am UTC](https://discuss.elastic.co/t/using-groovy-as-script-language-instead-of-expression/661/1 "2015-05-14T03:08:53Z")

</div>

I am going to use scripted field to get week of year of a date at Kibana 4. I use Groovy to write the script. However, I find that the default lang of scripted field is expression. That is ,"lang":"expression".  
Is there any way to change it to groovy?  
Thanks.

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [May 14, 2015, 5:31pm UTC](https://discuss.elastic.co/t/using-groovy-as-script-language-instead-of-expression/661/2 "2015-05-14T17:31:34Z")

</div>

Groovy scripting is not currently supported in Kibana. Sorry

---

<div class="post-metadata">

**Author:** ![pollylaw](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@pollylaw](https://discuss.elastic.co/u/pollylaw)\
**Post date:** [May 15, 2015, 1:42am UTC](https://discuss.elastic.co/t/using-groovy-as-script-language-instead-of-expression/661/3 "2015-05-15T01:42:23Z")

</div>

Is there any plan for Kibana to support it?

---

<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 6, 2017, 2:19pm UTC](https://discuss.elastic.co/t/using-groovy-as-script-language-instead-of-expression/661/4 "2017-07-06T14:19:30Z")

</div>


