# Label/legend names are cut off or incomplete

**URL:** https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442
**Category:** Kibana
**Created:** [January 5, 2016, 9:39pm UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442 "2016-01-05T21:39:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![romspacenut](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@romspacenut](https://discuss.elastic.co/u/romspacenut)
#### Post date: [January 5, 2016, 9:39pm UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/1 "2016-01-05T21:39:12Z")

</div>

I'm fairly new to Kibana and the beats product. I imported in the available dashboards for the beats products. When I view any graphs/metrics, the [beat.name](http://beat.name) seems to be incomplete. For example, if the name is ABC-12345, I will only see 12345 as the label/legend. Is there a way for me to fix this or update?

I'm currently using Kibana 4.3.1 and the latest ES.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 5, 2016, 9:53pm UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/2 "2016-01-05T21:53:14Z")

</div>

Providing a screenshot would be helpful 🙂

---

<div class="post-metadata">

### Author: ![romspacenut](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@romspacenut](https://discuss.elastic.co/u/romspacenut)
#### Post date: [January 5, 2016, 9:55pm UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/3 "2016-01-05T21:55:48Z")

</div>

Oops, forgot about that. Here you go...

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/700b2cd24454f7409c26620575788c0c3d4f30e1.png)

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 5, 2016, 10:12pm UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/4 "2016-01-05T22:12:45Z")

</div>

It's probably due to the analysis that ES does to field values.  
Specifically there is a thing called tokenisation that splits based on a bunch of things like whitespace and dashes. That means that `ABC-12345` turns into two tokens, `abc` (cause it lower cases) and `12345`. That's why it's showing as `12345`.

Basically what you need to do is use the `.raw` version of that field to build the viz on.

---

<div class="post-metadata">

### Author: ![romspacenut](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@romspacenut](https://discuss.elastic.co/u/romspacenut)
#### Post date: [January 6, 2016, 12:52am UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/5 "2016-01-06T00:52:24Z")

</div>

Thanks for your input.

---

<div class="post-metadata">

### Author: ![romspacenut](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@romspacenut](https://discuss.elastic.co/u/romspacenut)
#### Post date: [January 6, 2016, 4:52am UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/6 "2016-01-06T04:52:02Z")

</div>

I'm getting close but have a new issue.

When I select beat.name, the graph works but I get the original issue.

![](https://us1.discourse-cdn.com/elastic/original/2X/7/75f32aefda1944e9bf339df9a8d021c0089bc329.png)

If I select beat.name.raw the legend is displayed properly now but there is no data displayed. Am I missing something from the mapping?

![](https://us1.discourse-cdn.com/elastic/original/2X/2/28652fecdfc8dd1b9406e91bb59d8c05cf8e1766.png)

---

<div class="post-metadata">

### Author: ![romspacenut](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@romspacenut](https://discuss.elastic.co/u/romspacenut)
#### Post date: [January 6, 2016, 4:53am UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/7 "2016-01-06T04:53:10Z")

</div>

Here is the updated index template used:

`{ "template" : "topbeat-*-db*", "mappings": { "system": { "properties": { "@timestamp": { "type": "date", "format": "strict_date_optional_time||epoch_millis" }, "beat": { "properties": { "hostname": { "type": "string", "fields": { "raw" : { "type": "string", "index": "not_analyzed" } } }, "name": { "type": "string", "fields": { "raw" : { "type": "string", "index": "not_analyzed" } } } } }, "count": { "type": "long" }, "cpu": { "properties": { "idle": { "type": "long" }, "iowait": { "type": "long" }, "irq": { "type": "long" }, "nice": { "type": "long" }, "softirq": { "type": "long" }, "steal": { "type": "long" }, "system": { "type": "long" }, "system_p": { "type": "long" }, "user": { "type": "long" }, "user_p": { "type": "long" } } }, "load": { "properties": { "load1": { "type": "long" }, "load15": { "type": "double" }, "load5": { "type": "double" } } }, "mem": { "properties": { "actual_free": { "type": "long" }, "actual_used": { "type": "long" }, "actual_used_p": { "type": "double" }, "free": { "type": "long" }, "total": { "type": "long" }, "used": { "type": "long" }, "used_p": { "type": "double" } } }, "swap": { "properties": { "actual_free": { "type": "long" }, "actual_used": { "type": "long" }, "actual_used_p": { "type": "long" }, "free": { "type": "long" }, "total": { "type": "long" }, "used": { "type": "long" }, "used_p": { "type": "long" } } }, "type": { "type": "string" } } }, "filesystem": { "properties": { "@timestamp": { "type": "date", "format": "strict_date_optional_time||epoch_millis" }, "beat": { "properties": { "hostname": { "type": "string", "fields": { "raw" : { "type": "string", "index": "not_analyzed" } } }, "name": { "type": "string", "fields": { "raw" : { "type": "string", "index": "not_analyzed" } } } } }, "count": { "type": "long" }, "fs": { "properties": { "avail": { "type": "long" }, "device_name": { "type": "string" }, "files": { "type": "long" }, "free": { "type": "long" }, "free_files": { "type": "long" }, "mount_point": { "type": "string" }, "total": { "type": "long" }, "used": { "type": "long" }, "used_p": { "type": "long" } } }, "type": { "type": "string" } } }, "process": { "properties": { "@timestamp": { "type": "date", "format": "strict_date_optional_time||epoch_millis" }, "beat": { "properties": { "hostname": { "type": "string", "fields": { "raw" : { "type": "string", "index": "not_analyzed" } } }, "name": { "type": "string", "fields": { "raw" : { "type": "string", "index": "not_analyzed" } } } } }, "count": { "type": "long" }, "proc": { "properties": { "cpu": { "properties": { "start_time": { "type": "string" }, "system": { "type": "long" }, "total": { "type": "long" }, "user": { "type": "long" }, "user_p": { "type": "long" } } }, "mem": { "properties": { "rss": { "type": "long" }, "rss_p": { "type": "long" }, "share": { "type": "long" }, "size": { "type": "long" } } }, "name": { "type": "string" }, "pid": { "type": "long" }, "ppid": { "type": "long" }, "state": { "type": "string" } } }, "type": { "type": "string" } } } } }`

---

<div class="post-metadata">

### Author: ![romspacenut](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@romspacenut](https://discuss.elastic.co/u/romspacenut)
#### Post date: [January 7, 2016, 12:16am UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/8 "2016-01-07T00:16:39Z")

</div>

Figured out all the issues. I didn't add the beats templates into ES.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 7, 2016, 12:34am UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/9 "2016-01-07T00:34:22Z")

</div>

Woops!

---

<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: [July 6, 2017, 2:05pm UTC](https://discuss.elastic.co/t/label-legend-names-are-cut-off-or-incomplete/38442/10 "2017-07-06T14:05:35Z")

</div>


