# Dashes in hostname splits Vertical bar chart?

**URL:** <https://discuss.elastic.co/t/dashes-in-hostname-splits-vertical-bar-chart/63056>\
**Category:** Kibana\
**Created:** [October 14, 2016, 1:04pm UTC](https://discuss.elastic.co/t/dashes-in-hostname-splits-vertical-bar-chart/63056 "2016-10-14T13:04:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadir](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@Nadir](https://discuss.elastic.co/u/Nadir)\
**Post date:** [October 14, 2016, 1:04pm UTC](https://discuss.elastic.co/t/dashes-in-hostname-splits-vertical-bar-chart/63056/1 "2016-10-14T13:04:27Z")

</div>

Hi !

My hostnames follow the format COUNTRYCODE-CITYCODE-NAME ( e.g: GE-HAM-SWSUS ) .

When I create a vertical bar chart and use the hostname for the split chart option to get more servers monitored on the dashboard, I do get 3 bars instead of just one.

One bar group for GE, one for HAM and another one for SWSUS .

How can I aviod this ?

Any hint would be very much apreciated.

Kind regards,  
Nadir

---

<div class="post-metadata">

**Author:** ![DigiAngel](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DigiAngel](https://discuss.elastic.co/u/DigiAngel)\
**Post date:** [October 14, 2016, 4:16pm UTC](https://discuss.elastic.co/t/dashes-in-hostname-splits-vertical-bar-chart/63056/2 "2016-10-14T16:16:32Z")

</div>

Read this: [https://discuss.elastic.co/t/kibana-splitting-fields-with-dots-or-spaces-in-them/61298/2](https://discuss.elastic.co/t/kibana-splitting-fields-with-dots-or-spaces-in-them/61298/2)

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [October 14, 2016, 4:17pm UTC](https://discuss.elastic.co/t/dashes-in-hostname-splits-vertical-bar-chart/63056/3 "2016-10-14T16:17:30Z")

</div>

It sounds like the field is analyzed, so elasticsearch is tokenizing your hostname. In 5.x, you'll want to map this field as keyword. In 2.x you'll want to map it as not\_analyzed - see [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html) for more info.

---

<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, 1:36pm UTC](https://discuss.elastic.co/t/dashes-in-hostname-splits-vertical-bar-chart/63056/4 "2017-07-06T13:36:37Z")

</div>


