# How to add custom functions to kibana timelion?

**URL:** <https://discuss.elastic.co/t/how-to-add-custom-functions-to-kibana-timelion/113332>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [December 27, 2017, 3:13pm UTC](https://discuss.elastic.co/t/how-to-add-custom-functions-to-kibana-timelion/113332 "2017-12-27T15:13:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saii](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@saii](https://discuss.elastic.co/u/saii)\
**Post date:** [December 27, 2017, 3:13pm UTC](https://discuss.elastic.co/t/how-to-add-custom-functions-to-kibana-timelion/113332/1 "2017-12-27T15:13:54Z")

</div>

i have read the following article

> **[Implementing a statistical anomaly detector in Elasticsearch - Part 2](https://www.elastic.co/blog/implementing-a-statistical-anomaly-detector-part-2)**
>
> In part 2 of this series on building a statistical anomaly detector, we graph the output in Timelion, a Kibana app for graphing time-series

  
The footnotes in the article gives steps to add a custom function to Timelion..it says to add the function in a specified path and then remove the timelion bundle file. After doing this when i restarted kibana, the kibana interface is stuck. is this the only way to add a custom function? or is there any other method to do it? Can we actually add custom functions to the Timelion? kindly help me out..  
Thanks in advance..

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [December 27, 2017, 5:33pm UTC](https://discuss.elastic.co/t/how-to-add-custom-functions-to-kibana-timelion/113332/2 "2017-12-27T17:33:29Z")

</div>

There's a good chance that the functions there aren't compatible with a newer version of Kibana. The recommended workflow now is to create a plugin, [https://github.com/rashidkpc/timelion-random](https://github.com/rashidkpc/timelion-random) can be used as a reference.

Can share the error in your browsers developer tools?

---

<div class="post-metadata">

**Author:** ![saii](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@saii](https://discuss.elastic.co/u/saii)\
**Post date:** [December 28, 2017, 2:19pm UTC](https://discuss.elastic.co/t/how-to-add-custom-functions-to-kibana-timelion/113332/3 "2017-12-28T14:19:39Z")

</div>

Thanks for the reply..But is there any other timelion function to achieve the results obtained using the showifgreater() function that is mentioned in the article? i have tried using if() but couldn't achieve..ofcourse it is clear that a new function is added since the remaining cant achieve the same results..But just want to know if there is any possibility that am missing out..can u please help me out

---

<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:** [January 25, 2018, 2:19pm UTC](https://discuss.elastic.co/t/how-to-add-custom-functions-to-kibana-timelion/113332/4 "2018-01-25T14:19:59Z")

</div>

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