# Need help with timelion

**URL:** <https://discuss.elastic.co/t/need-help-with-timelion/200132>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [September 19, 2019, 7:13am UTC](https://discuss.elastic.co/t/need-help-with-timelion/200132 "2019-09-19T07:13:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal\_patil](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kunal\_patil](https://discuss.elastic.co/u/kunal_patil)\
**Post date:** [September 19, 2019, 7:13am UTC](https://discuss.elastic.co/t/need-help-with-timelion/200132/1 "2019-09-19T07:13:10Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/0/803762b1f00647262ad39293311442a21e6c60ae.png)

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

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [September 19, 2019, 7:33am UTC](https://discuss.elastic.co/t/need-help-with-timelion/200132/2 "2019-09-19T07:33:54Z")

</div>

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')`

---

<div class="post-metadata">

**Author:** ![kunal\_patil](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kunal\_patil](https://discuss.elastic.co/u/kunal_patil)\
**Post date:** [September 19, 2019, 7:52am UTC](https://discuss.elastic.co/t/need-help-with-timelion/200132/3 "2019-09-19T07:52:05Z")

</div>

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

---

<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:** [October 17, 2019, 7:52am UTC](https://discuss.elastic.co/t/need-help-with-timelion/200132/4 "2019-10-17T07:52:17Z")

</div>

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