# How to split lines based on a term in Timelion using split() or other?

**URL:** <https://discuss.elastic.co/t/how-to-split-lines-based-on-a-term-in-timelion-using-split-or-other/85851>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [May 16, 2017, 4:42am UTC](https://discuss.elastic.co/t/how-to-split-lines-based-on-a-term-in-timelion-using-split-or-other/85851 "2017-05-16T04:42:12Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Nico-DF](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@Nico-DF](https://discuss.elastic.co/u/Nico-DF)\
**Post date:** [May 18, 2017, 7:05am UTC](https://discuss.elastic.co/t/how-to-split-lines-based-on-a-term-in-timelion-using-split-or-other/85851/6 "2017-05-18T07:05:39Z")

</div>

You can use Regex in your label.

It will be something like:

```auto
.label(regex='.* username.keyword:(.*) > .*', label='$1')

```

---

_[View the full topic](https://discuss.elastic.co/t/how-to-split-lines-based-on-a-term-in-timelion-using-split-or-other/85851)._
