# Enabling Expression scripts for use with scripted fields in kibana

**URL:** <https://discuss.elastic.co/t/enabling-expression-scripts-for-use-with-scripted-fields-in-kibana/51968>\
**Category:** Elasticsearch\
**Created:** [June 6, 2016, 3:07pm UTC](https://discuss.elastic.co/t/enabling-expression-scripts-for-use-with-scripted-fields-in-kibana/51968 "2016-06-06T15:07:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicholasScott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicholasscott/32/21479_2.png) [@NicholasScott](https://discuss.elastic.co/u/NicholasScott)\
**Post date:** [June 6, 2016, 3:07pm UTC](https://discuss.elastic.co/t/enabling-expression-scripts-for-use-with-scripted-fields-in-kibana/51968/1 "2016-06-06T15:07:46Z")

</div>

Hi, I am having trouble installing the lang-expression plugin to elasticsearch, the error i am getting when i run "plugin install file:///D:/lang-expression-2.2.1.zip" is this: "ERROR: plugin 'lang-expression' cannot be installed like this, it is a system module" I am trying to install this because i was getting the error message: "Discover: script\_lang not supported [expression] lexer\_no\_viable\_alt\_exception: null" in kibana when trying to use scripted fields to calculate a new field. What is the best way to enable these scripts on a cluster?

---

<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 5, 2017, 10:45pm UTC](https://discuss.elastic.co/t/enabling-expression-scripts-for-use-with-scripted-fields-in-kibana/51968/2 "2017-07-05T22:45:55Z")

</div>


