# Version field type shows as unknown in the index pattern

**URL:** <https://discuss.elastic.co/t/version-field-type-shows-as-unknown-in-the-index-pattern/265973>\
**Category:** Kibana\
**Created:** [March 2, 2021, 3:01pm UTC](https://discuss.elastic.co/t/version-field-type-shows-as-unknown-in-the-index-pattern/265973 "2021-03-02T15:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dor\_Dadush](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dor_dadush/32/84816_2.png) [@Dor\_Dadush](https://discuss.elastic.co/u/Dor_Dadush)\
**Post date:** [March 2, 2021, 3:01pm UTC](https://discuss.elastic.co/t/version-field-type-shows-as-unknown-in-the-index-pattern/265973/1 "2021-03-02T15:01:17Z")

</div>

Hi everyone 🙂  
I have an index template which contains a mapping of the field agent.version to the type **version** (introduced in 7.10.X if I'm not mistaken)

But, in the index pattern of the relevant index, I see this field as **unknown** type:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/6/66d2f2ed0373a0ee1e33607199be002fcfb2cf51.png)

- I don't have any conflicts under this index pattern

- I have also validated the index mapping of this specific index:  
These are the results for `GET /test-logs-2021-03-02/_mapping` :

```auto
    "mappings" : {
          "properties" : {
            "@timestamp" : {
              "type" : "date"
            },
            "@version" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "agent" : {
              "properties" : {
                "ephemeral_id" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "hostname" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "id" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "name" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "type" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
            },
            "version" : {
              "type" : "version"
            }
          }
        },
    ...

```

I want to perform visualizations according to this field as the **Version** type, but now I cannot do anything with it.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [March 2, 2021, 3:50pm UTC](https://discuss.elastic.co/t/version-field-type-shows-as-unknown-in-the-index-pattern/265973/2 "2021-03-02T15:50:11Z")

</div>

Hi, thanks for letting us know about this! We try to keep Kibana up to date with new ES data types, but it looks like we didn't here. [Here is a Github issue I just opened to track the work on this](https://github.com/elastic/kibana/issues/93248).

In the meantime, I suggest that you use a workaround: copy your `version` into a `keyword` field, either by using multi-mapping or the `copy_to` mapping property. This will let you use it in Kibana.

---

<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 30, 2021, 3:50pm UTC](https://discuss.elastic.co/t/version-field-type-shows-as-unknown-in-the-index-pattern/265973/3 "2021-03-30T15:50:39Z")

</div>

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