Need help with timelion

I am trying this really simple thing in Timelion but missing something very obvious I think.

.es(index=fts-index-data,timefield='Start Time',metric=avg:'Start Count') but this is giving me error below,

[timelion_vis] > SyntaxError: {"type":"incompleteFunction","function":"es","location":{"min":0,"max":3},"text":".es"}

Start Count is a number field as can be seen from my kibana index snap below.

Please suggest what could be the issue here. Let me know if any further information necessary.

Hi @kunal_patil, thanks for your question.

Did you try putting the avg into the quotes together with the field name?
.es(index=fts-index-data,timefield='Start Time',metric='avg:Start Count')

I didn't until you suggested. And now it works as expected. Thanks a ton!!

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