# Unknown type in Discover even with Dynamic Mapping

**URL:** https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423
**Category:** Logstash
**Created:** [April 23, 2020, 9:35am UTC](https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423 "2020-04-23T09:35:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Bibas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bibas/32/67732_2.png) [@Bibas](https://discuss.elastic.co/u/Bibas)
#### Post date: [April 23, 2020, 9:35am UTC](https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423/1 "2020-04-23T09:35:24Z")

</div>

Hello !

I'm new to the ELK stack so this question might be a bit dumb and I apologize.

I have logs going through Logstash, then Elastic Search and arriving to Kibana without problems. My logs contains severals custom field like "userId" or "objectName" which are both strings in the JSON sent to Logstash.

When I want to create visualization using one of those custom field, it doesn't appear in the list of the possible usable value.  
I checked in my ElasticSearch Index in the Mapping and the dynamic Mapping find the good type of those fields (text).

Here is a sample of the mapping :

```json
...
},
        "userId": {
          "type": "text",
          "norms": false,
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
...

```

So, from what I understand, the dynamic mapping find this field to be of type text, but it appears as Unknown Type in the "Discover" tab of Kibana and I'm not able to use it in Visualization.

Do you have any ideas why this field have an Unknown type in Kibana even if ElasticSearch DynamicMapping found the good type ?

Thanks

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 23, 2020, 4:31pm UTC](https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423/2 "2020-04-23T16:31:41Z")

</div>

Did you refresh the index pattern in Kibana?

---

<div class="post-metadata">

### Author: ![Bibas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bibas/32/67732_2.png) [@Bibas](https://discuss.elastic.co/u/Bibas)
#### Post date: [April 24, 2020, 7:03am UTC](https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423/3 "2020-04-24T07:03:16Z")

</div>

Hi,

Thank you for your answer, I didn't know I had to refresh the index.  
How can i refresh it ?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 24, 2020, 4:52pm UTC](https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423/4 "2020-04-24T16:52:31Z")

</div>

> [@Bibas](#):
>
> How can i refresh it ?

Check the [documentation](https://www.elastic.co/guide/en/kibana/current/managing-fields.html).

---

<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: [May 22, 2020, 5:01pm UTC](https://discuss.elastic.co/t/unknown-type-in-discover-even-with-dynamic-mapping/229423/5 "2020-05-22T17:01:13Z")

</div>

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