# Change the default script language

**URL:** <https://discuss.elastic.co/t/change-the-default-script-language/49529>\
**Category:** Kibana\
**Created:** [May 9, 2016, 8:55am UTC](https://discuss.elastic.co/t/change-the-default-script-language/49529 "2016-05-09T08:55:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![orweinberger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orweinberger/32/580_2.png) [@orweinberger](https://discuss.elastic.co/u/orweinberger)\
**Post date:** [May 9, 2016, 8:55am UTC](https://discuss.elastic.co/t/change-the-default-script-language/49529/1 "2016-05-09T08:55:38Z")

</div>

Hi all,

Running ES 2.3.1 and latest Kibana version (pre 5)

I've set up the javascript language plugin and defined it in my `elasticsearch.yml` as the default language and enabled inline scripting.

However, when I attempt to set a scripted field via Kibana, I get an error and looking at the elasticsearch logs I can see it tries to parse the script via `expression` instead of `javascript`.

I verified that the javascript plugin is loaded and enabled on all cluster nodes. How can I tell Kibana to use javascript to parse scripted fields?

Thanks.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [May 10, 2016, 12:23am UTC](https://discuss.elastic.co/t/change-the-default-script-language/49529/2 "2016-05-10T00:23:21Z")

</div>

Unfortunately this is not something which is currently supported.

There is a ticket open to provide this functionality: [https://github.com/elastic/kibana/issues/6529](https://github.com/elastic/kibana/issues/6529)

---

<div class="post-metadata">

**Author:** ![orweinberger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orweinberger/32/580_2.png) [@orweinberger](https://discuss.elastic.co/u/orweinberger)\
**Post date:** [May 10, 2016, 1:12pm UTC](https://discuss.elastic.co/t/change-the-default-script-language/49529/3 "2016-05-10T13:12:10Z")

</div>

I found a hacky workaround which is to manually update the index-pattern in the `.kibana` index and change the `lang` to `javascript` which works great.

---

<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, 1:53pm UTC](https://discuss.elastic.co/t/change-the-default-script-language/49529/4 "2017-07-06T13:53:49Z")

</div>


