# Timelion Label Multi Regex not working

**URL:** <https://discuss.elastic.co/t/timelion-label-multi-regex-not-working/208066>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [November 15, 2019, 11:57am UTC](https://discuss.elastic.co/t/timelion-label-multi-regex-not-working/208066 "2019-11-15T11:57:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)\
**Post date:** [November 15, 2019, 11:57am UTC](https://discuss.elastic.co/t/timelion-label-multi-regex-not-working/208066/1 "2019-11-15T11:57:38Z")

</div>

Hi guys,

I'm using timelion and one of my functions returns this default label :

```
q:field1.keyword:"val1" AND field2.keyword:"val2" > avg(field3)

```

I'm trying to get the label below :

```
avg(field3) - val1 - val2

```

So I'm using the function `.label()` with `$1` like :

```
.label("$1", ".* > (.*).*") 

```

which gives me a good start : `avg(field3)`

but I expected to be able to add a `$2`, `$3` into my function like :

```
   .label("$1 - $2 - $3", ".* > (.*).*", "another_regex", "another_regex")

```

Indeed, I've got the bellow :  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/0/d005e4b8c129c8047abbd2fb2d00103e58d0d60e.png)

Am I doing something wrong ? Is there another way to achieve what I want to do ? Otherwise, is this a known issue you guys are working on ?

Thanks in advance 🙂  
Guillaume

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [November 18, 2019, 10:10pm UTC](https://discuss.elastic.co/t/timelion-label-multi-regex-not-working/208066/2 "2019-11-18T22:10:11Z")

</div>

I don't think multi regex is really supported in Timelion. And sadly there won't be any more work done on Timelion as it's currenly being phased out by TSVB. Can't you achieve the same thing with the math aggregation in TSVB?

---

<div class="post-metadata">

**Author:** ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)\
**Post date:** [November 19, 2019, 11:35am UTC](https://discuss.elastic.co/t/timelion-label-multi-regex-not-working/208066/3 "2019-11-19T11:35:24Z")

</div>

Hi @Marius_Dragomir , thanks for answering

> [@Marius\_Dragomir](#):
>
> Timelion as it's currenly being phased out by TSVB

Really ? ... Timelion looks more powerful to me !

Alright - can be closed then 🙂

Thanks

---

<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:** [December 17, 2019, 11:35am UTC](https://discuss.elastic.co/t/timelion-label-multi-regex-not-working/208066/4 "2019-12-17T11:35:28Z")

</div>

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