# Hostname display on the chart

**URL:** <https://discuss.elastic.co/t/hostname-display-on-the-chart/225376>\
**Category:** Kibana\
**Created:** [March 27, 2020, 9:43am UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376 "2020-03-27T09:43:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai\_16](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sai\_16](https://discuss.elastic.co/u/sai_16)\
**Post date:** [March 27, 2020, 9:43am UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376/1 "2020-03-27T09:43:20Z")

</div>

Created a CPU area chart ,passing host name dynamically, through filters beat.hostname,is there a way to capture the hostname in the title or somewhere on the graph.It doesnt show the hostname details anywhere in the chart.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 27, 2020, 12:49pm UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376/2 "2020-03-27T12:49:59Z")

</div>

You can add a split series terms aggregation of size 1 on the hostname field. It will never actually split the series (because there you are already filtering down to just a single host), but this will cause your only series to be named by the hostname:

 ![Screenshot 2020-03-27 at 13.49.09](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0eb0fa33a6dce2174dc9b879e25182a9470cadae.jpeg)

---

<div class="post-metadata">

**Author:** ![sai\_16](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sai\_16](https://discuss.elastic.co/u/sai_16)\
**Post date:** [March 27, 2020, 3:06pm UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376/3 "2020-03-27T15:06:06Z")

</div>

It Worked 🙂 thank you!! And one more thing,how are you getting the timestamp in date and time format..for me,it shows only time in x-axis.  
My X-axis is : Date histogram ,interval:5m...though i'm lookin for last 2 days of data..it shows me only time but not the date,its so confusing because of that

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 27, 2020, 3:08pm UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376/4 "2020-03-27T15:08:21Z")

</div>

It depends on the time range you have selected - if you increase it you should also get the date.  
You can configure the default scaling in the advanced settings: It's the `dateFormat:scaled` setting

---

<div class="post-metadata">

**Author:** ![sai\_16](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sai\_16](https://discuss.elastic.co/u/sai_16)\
**Post date:** [March 31, 2020, 10:06am UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376/5 "2020-03-31T10:06:10Z")

</div>

setting is the same..dateFormat:scaled , if i select the interval \>60min then it is showing in both date and time format,if the interval is less than 60min ,its showing only time

---

<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:** [April 28, 2020, 10:06am UTC](https://discuss.elastic.co/t/hostname-display-on-the-chart/225376/6 "2020-04-28T10:06:31Z")

</div>

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