# How to do static field in visualization

**URL:** <https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834>\
**Category:** Kibana\
**Created:** [February 10, 2021, 6:45am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834 "2021-02-10T06:45:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nazakat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nazakat/32/83692_2.png) [@Nazakat](https://discuss.elastic.co/u/Nazakat)\
**Post date:** [February 10, 2021, 6:45am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/1 "2021-02-10T06:45:56Z")

</div>

In kibana visualization , for example in last 15 minute the kibana visulization shows that user x has count 10 then after 15 minutes if a user is not using computer then it should show count 0 and yes it should also show user x

` Last 15 minutes`

**host\_name**** Total Count**  
John 250

After some time if a particular user is not using the system or system is shutdown then it should show

**host\_name**** Total Count**  
John 0

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [February 10, 2021, 8:17am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/2 "2021-02-10T08:17:21Z")

</div>

Hi and welcome to our community

Could you provide some details about your documents in Elasticsearch and what kind of visualization you intend to create with them,

Many thx & Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![Nazakat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nazakat/32/83692_2.png) [@Nazakat](https://discuss.elastic.co/u/Nazakat)\
**Post date:** [February 10, 2021, 9:01am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/3 "2021-02-10T09:01:38Z")

</div>

![data pic](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b8721ef68ef9a13544069a5fc1df796e9cbecc83.png)

This data visualization after logs not come than host is not come in kibana

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [February 10, 2021, 9:02am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/4 "2021-02-10T09:02:52Z")

</div>

Ok, what's the structure of you logs in Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [February 10, 2021, 9:16am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/5 "2021-02-10T09:16:10Z")

</div>

hey @matw is there any way in kibana that we can static something in my case the host\_name field is not shown when there were no logs in kibana

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [February 10, 2021, 9:24am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/6 "2021-02-10T09:24:20Z")

</div>

If there are no logs, nothing can be displayed, what do you mean by `static`?

---

<div class="post-metadata">

**Author:** ![Nazakat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nazakat/32/83692_2.png) [@Nazakat](https://discuss.elastic.co/u/Nazakat)\
**Post date:** [February 10, 2021, 9:28am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/7 "2021-02-10T09:28:18Z")

</div>

By static mean in above pic the Computer field show value even if there is no log and count should show 0 if there is no log

---

<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:** [March 10, 2021, 9:28am UTC](https://discuss.elastic.co/t/how-to-do-static-field-in-visualization/263834/8 "2021-03-10T09:28:21Z")

</div>

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