# Scripted Fields and Timelion

**URL:** https://discuss.elastic.co/t/scripted-fields-and-timelion/66211
**Category:** Kibana
**Tags:** timelion
**Created:** [November 16, 2016, 7:27am UTC](https://discuss.elastic.co/t/scripted-fields-and-timelion/66211 "2016-11-16T07:27:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dallas\_Toth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dallas_toth/32/22630_2.png) [@Dallas\_Toth](https://discuss.elastic.co/u/Dallas_Toth)
#### Post date: [November 16, 2016, 7:27am UTC](https://discuss.elastic.co/t/scripted-fields-and-timelion/66211/1 "2016-11-16T07:27:37Z")

</div>

Is it possible to use Kibana scripted fields in Timelion.  
I have this scripted field  
name:month script:doc['date'].getMonth() + 1  
which is returning the Month only as a number.  
I am wanting to use a q='month:7' and q='month\>=7 && month\<=10' but neither return the expected months

.es(index='\*',timefield='date',q='month\>=7&&month\<=10',metric='sum:accrualamount').bars()  
returns results that have a 10 in any field. Does not limit to only month field.

.es(index='\*',timefield='date',q='month:7',metric='sum:accrualamount').bars()  
returns no results

---

<div class="post-metadata">

### Author: ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)
#### Post date: [November 16, 2016, 4:34pm UTC](https://discuss.elastic.co/t/scripted-fields-and-timelion/66211/2 "2016-11-16T16:34:33Z")

</div>

@Dallas_Toth,

Unfortunately, Timelion does not currently support scripted fields. There is a github issue for this, but at the time of this post it is very sparse. You may want to weigh in here.

> <https://github.com/elastic/kibana/issues/9022>

---

<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: [December 14, 2016, 4:34pm UTC](https://discuss.elastic.co/t/scripted-fields-and-timelion/66211/3 "2016-12-14T16:34:49Z")

</div>

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