# How to create a conditional scripted field in Kibana

**URL:** <https://discuss.elastic.co/t/how-to-create-a-conditional-scripted-field-in-kibana/33087>\
**Category:** Kibana\
**Created:** [October 27, 2015, 3:32pm UTC](https://discuss.elastic.co/t/how-to-create-a-conditional-scripted-field-in-kibana/33087 "2015-10-27T15:32:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [October 29, 2015, 6:30am UTC](https://discuss.elastic.co/t/how-to-create-a-conditional-scripted-field-in-kibana/33087/5 "2015-10-29T06:30:00Z")

</div>

There is some info on how to do indicate you are using Groovy here with static scripts: [Calling groovy script from Kibana](https://discuss.elastic.co/t/calling-groovy-script-from-kibana/2542/3)

Alternatively, you can enable dynamic groovy (though I wouldn't recommend it, as it's insecure).

---

_[View the full topic](https://discuss.elastic.co/t/how-to-create-a-conditional-scripted-field-in-kibana/33087)._
