# Kibana doesn't show .keyword field under fields dropdown

**URL:** https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104
**Category:** Kibana
**Created:** [February 14, 2017, 8:07pm UTC](https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104 "2017-02-14T20:07:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Piyush\_Diwan](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@Piyush\_Diwan](https://discuss.elastic.co/u/Piyush_Diwan)
#### Post date: [February 14, 2017, 8:07pm UTC](https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104/1 "2017-02-14T20:07:24Z")

</div>

I have an ES index generated by logstash that has the keyword field for all the properties, visible using ES API in kibana but on visualize page when I try to apply aggregation on Term, Field drop-down doesn't show any .keyword fields at all. What am I missing ?

ES API -\>

```auto
"mcs-elasticsearch": {
    "mappings": {
      "flower_document": {
        "properties": {
          "@timestamp": {
            "type": "date"
          },
          "@version": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "beat": {
            "properties": {
              "hostname": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
              "name": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              },
              "version": {
                "type": "text",
                "fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }
              }
            }
          },
          "function": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "host": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "input_type": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "loglevel": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "message": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
....

```

Kibana Visualize -\>

 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/48da6e969ffdb670049bc0e9d3dffb5e0c9c2b22.png)

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [February 14, 2017, 10:41pm UTC](https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104/2 "2017-02-14T22:41:56Z")

</div>

`beat.hostname` is in the dropdown though I don't see `beat.name`. Are you sure there is data for that key within the search parameters you have?

---

<div class="post-metadata">

### Author: ![Piyush\_Diwan](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@Piyush\_Diwan](https://discuss.elastic.co/u/Piyush_Diwan)
#### Post date: [February 14, 2017, 10:55pm UTC](https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104/3 "2017-02-14T22:55:09Z")

</div>

Scroll down the ES data, you'll see `beat.name` and `beat.version`. My problem wasn't that though. As you could see every property has

```auto
"fields": {
                  "keyword": {
                    "type": "keyword",
                    "ignore_above": 256
                  }
                }

```

so I expect Fields dropdown should show both `host` and `host.keyword` options for full text search and aggregation respectively. But it doesn't!

Precisely I wanted to achieve this without having to enable `fielddata`:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html#before-enabling-fielddata](https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html#before-enabling-fielddata)

---

<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 14, 2017, 10:55pm UTC](https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104/4 "2017-03-14T22:55:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Toby-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toby-elastic/32/56715_2.png) [@Toby-Elastic](https://discuss.elastic.co/u/Toby-Elastic)
#### Post date: [August 26, 2020, 10:24am UTC](https://discuss.elastic.co/t/kibana-doesnt-show-keyword-field-under-fields-dropdown/75104/5 "2020-08-26T10:24:33Z")

</div>

For those finding this post/question through a search engine: the solution for this problem is to refresh the field list of the Index Pattern of the affected Index in Kibana. See [https://www.elastic.co/guide/en/kibana/current/managing-fields.html#\_manage\_your\_index\_pattern](https://www.elastic.co/guide/en/kibana/current/managing-fields.html#_manage_your_index_pattern)
