# Timelion label Regex

**URL:** <https://discuss.elastic.co/t/timelion-label-regex/211476>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [December 11, 2019, 2:06pm UTC](https://discuss.elastic.co/t/timelion-label-regex/211476 "2019-12-11T14:06:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tofmonaute](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tofmonaute/32/47036_2.png) [@tofmonaute](https://discuss.elastic.co/u/tofmonaute)\
**Post date:** [December 11, 2019, 2:06pm UTC](https://discuss.elastic.co/t/timelion-label-regex/211476/1 "2019-12-11T14:06:29Z")

</div>

Hi,  
I would like to use Timelion as follow  
This is the request :  
.es(q='msg: "\*Detected server" AND msg: "started" AND tags: "SystemOut"', index=ref\_rfnd\*)

Request result

Detected server DPZ\_500 started on node EXAMPLE1   
Detected server DPZ\_500 started on node EXAMPLE2   
Detected server DPZ\_500 started on node EXAMPLE2   
Detected server DPZ\_500 started on node EXAMPLE3   
Detected server DPZ\_500 started on node EXAMPLE4  
Detected server DPZ\_500 started on node EXAMPLE1

I would like to label on node name i.e : EXAMPLE( i )

But i did not succeed to use regex on label.  
I dont know how to proceed.

I tried this expression but its not working:  
es(q='msg: "_Detected server" AND msg: "started" AND tags: "SystemOut"', index=ref\_rfnd_).label("Node $1, "Detected\sserver\sDPZ\_500\sstarted\son\snode\s(\w+)")

whereas I tested the regex succesfully in Regexp Tester.

Some one can help me ?

Regards

---

<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 8, 2020, 2:06pm UTC](https://discuss.elastic.co/t/timelion-label-regex/211476/2 "2020-01-08T14:06:29Z")

</div>

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