# Field.keyword is not getting populated with the values from field

**URL:** <https://discuss.elastic.co/t/field-keyword-is-not-getting-populated-with-the-values-from-field/275622>\
**Category:** Kibana\
**Created:** [June 10, 2021, 8:23pm UTC](https://discuss.elastic.co/t/field-keyword-is-not-getting-populated-with-the-values-from-field/275622 "2021-06-10T20:23:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitish012](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nitish012](https://discuss.elastic.co/u/nitish012)\
**Post date:** [June 10, 2021, 8:23pm UTC](https://discuss.elastic.co/t/field-keyword-is-not-getting-populated-with-the-values-from-field/275622/1 "2021-06-10T20:23:27Z")

</div>

Hi Folks,

I am trying to create a visualize in Kibana which will have a URL which will be formatted using the value in the field something like this:

[https://dashboard?branch={{value}](https://dashboard?branch=%7B%7Bvalue%7D)}&id=CPP

But I can see the value populated in my field cpp\_sonar\_url but when I try to format URL with cpp\_sonar\_url.keyword, it is coming out empty in the "Data table" visualize when aggregated as "terms".

![Screen Shot 2021-06-10 at 1.09.04 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/9/5976bd12578fe09d37c8e68b91555ab7bf1cc7e9.png)

 ![Screen Shot 2021-06-10 at 1.11.01 PM](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f85e6bbcb755a8f5d02e536b7cce6de93dad021c.png)

The URL in the dashboard shows something like this(without branch populated):

[https://dashboard?branch=&id=CPP](https://dashboard?branch=&id=CPP)

I have to use .keyword because the visualize only shows the .keyword field and not the actual field.

I have been using the same logic for other fields and it is working fine for them but not for this one so not sure what is different about this and how can I debug it to make it work.

Any pointers will be really helpful.

---

<div class="post-metadata">

**Author:** ![nitish012](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nitish012](https://discuss.elastic.co/u/nitish012)\
**Post date:** [June 11, 2021, 11:41pm UTC](https://discuss.elastic.co/t/field-keyword-is-not-getting-populated-with-the-values-from-field/275622/2 "2021-06-11T23:41:44Z")

</div>

I created a new keyword type field but that also show value during Discover but not during visualize then aggregation then terms.

---

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [June 14, 2021, 11:13am UTC](https://discuss.elastic.co/t/field-keyword-is-not-getting-populated-with-the-values-from-field/275622/3 "2021-06-14T11:13:39Z")

</div>

> [@nitish012](#):
>
> I have been using the same logic for other fields and it is working fine for them but not for this one so not sure what is different about this and how can I debug it to make it work.

Do you mean this works for other `.keyword` fields, but doesn't work only for this particular `.keyword` field?  
If it is not working for any `.keyword`, then this definitely sounds like a bug, and I'd open a bug issue: [Sign in to GitHub · GitHub](https://github.com/elastic/kibana/issues/new?assignees=&labels=bug&template=Bug_report.md)

---

<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 12, 2021, 11:14am UTC](https://discuss.elastic.co/t/field-keyword-is-not-getting-populated-with-the-values-from-field/275622/4 "2021-07-12T11:14:28Z")

</div>

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