# Timelion .label() not working

**URL:** <https://discuss.elastic.co/t/timelion-label-not-working/129075>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [April 23, 2018, 10:12am UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075 "2018-04-23T10:12:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesha\_Venkanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ganesha_venkanna/32/30007_2.png) [@Ganesha\_Venkanna](https://discuss.elastic.co/u/Ganesha_Venkanna)\
**Post date:** [April 23, 2018, 10:12am UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075/1 "2018-04-23T10:12:35Z")

</div>

![kibana](https://us1.discourse-cdn.com/elastic/original/3X/d/d/ddf6bcf0ac9e4b39d0170864bc30e82e382ca870.png)

I want to change the label to just contents of ip\_log.keyword like below.

About to send heartbeat from server to agent 192.168.2.217 21 172.168.1.135,i have tried below but it doesn't seem to be working ,please help

`.es(index="agentlogs30",timefield="log_day",split=ip_log.keyword:19,q="agentIpAddress:192.168.2.217" ).label("my very own static text [$1]","^.* > ip_log.keyword:(\S+) > .*")`

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [April 23, 2018, 5:11pm UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075/2 "2018-04-23T17:11:55Z")

</div>

This is a duplicate of [Unable to change the label in timelion](https://discuss.elastic.co/t/unable-to-change-the-label-in-timelion/129072) I believe? Unless I missed how this question differs?

---

<div class="post-metadata">

**Author:** ![Ganesha\_Venkanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ganesha_venkanna/32/30007_2.png) [@Ganesha\_Venkanna](https://discuss.elastic.co/u/Ganesha_Venkanna)\
**Post date:** [April 24, 2018, 12:54am UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075/3 "2018-04-24T00:54:23Z")

</div>

Yes,first time when i posted i got an error,hence had to repost it,sorry for the trouble

---

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [April 24, 2018, 6:17am UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075/4 "2018-04-24T06:17:45Z")

</div>

try...

```auto
.label(regex="^.* ip_log.keyword:(.+) > .*$", label="$1").

```

---

<div class="post-metadata">

**Author:** ![Ganesha\_Venkanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ganesha_venkanna/32/30007_2.png) [@Ganesha\_Venkanna](https://discuss.elastic.co/u/Ganesha_Venkanna)\
**Post date:** [April 24, 2018, 8:33am UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075/5 "2018-04-24T08:33:12Z")

</div>

Worked perfectly thanks a lot 🙂

---

<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:** [May 22, 2018, 8:33am UTC](https://discuss.elastic.co/t/timelion-label-not-working/129075/6 "2018-05-22T08:33:16Z")

</div>

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