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 :
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