Scripted Fields and Timelion


(Dallas Toth) #1

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


(Jim Unger) #2

@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.


(system) #3

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