# Timelion lines split

**URL:** <https://discuss.elastic.co/t/timelion-lines-split/179902>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [May 7, 2019, 6:59am UTC](https://discuss.elastic.co/t/timelion-lines-split/179902 "2019-05-07T06:59:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marek.jaros](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@marek.jaros](https://discuss.elastic.co/u/marek.jaros)\
**Post date:** [May 7, 2019, 6:59am UTC](https://discuss.elastic.co/t/timelion-lines-split/179902/1 "2019-05-07T06:59:35Z")

</div>

Hello,

I want to make timelion of daily execution time of robot so I can see how many minutes each hour robot works during day. I use total execution time in seconds as metric. Problem I have is, that total exectuion time might be couple of hours sometimes. Is it possible to split line which has more than 60 minutes and place it into visualisation.

.es(q='totalExecutionTime AND robotName:"HSSQL-UIP-P03"' metric=sum:totalExecutionTimeInSeconds).divide(60).lines(fill=7, steps=TRUE).label('Daily Exectuion Time (minutes)')

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c283cf595e64a5904b9a4c2e8fedd63a3c73ca1.png)

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 8, 2019, 8:57pm UTC](https://discuss.elastic.co/t/timelion-lines-split/179902/2 "2019-05-08T20:57:24Z")

</div>

@marek.jaros

interesting question, depends on exactly how you see it functioning.

You can lock the _interval_ of your aggregation to be no more than one hour.

![image](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4d239d8d766bb7b209a814a0dc9817d117b326f.png)

That way, no robot will have a total execution time of more than 60m.

But you will be locked into using a time interval of at most an hour for your entire min/max range, not just for the intervals where the total execution time exceeds an hour.

---

<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:** [June 5, 2019, 8:57pm UTC](https://discuss.elastic.co/t/timelion-lines-split/179902/3 "2019-06-05T20:57:33Z")

</div>

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