# How to change the type on kibana but not logstash

**URL:** https://discuss.elastic.co/t/how-to-change-the-type-on-kibana-but-not-logstash/122645
**Category:** Kibana
**Created:** [March 6, 2018, 6:44am UTC](https://discuss.elastic.co/t/how-to-change-the-type-on-kibana-but-not-logstash/122645 "2018-03-06T06:44:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chenzilong444](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chenzilong444](https://discuss.elastic.co/u/chenzilong444)
#### Post date: [March 6, 2018, 6:44am UTC](https://discuss.elastic.co/t/how-to-change-the-type-on-kibana-but-not-logstash/122645/1 "2018-03-06T06:44:11Z")

</div>

i have a string field and i want to change its type on kibana from string to number

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [March 7, 2018, 3:32pm UTC](https://discuss.elastic.co/t/how-to-change-the-type-on-kibana-but-not-logstash/122645/2 "2018-03-07T15:32:06Z")

</div>

Types are interpreted in Kibana from the mappings saved in Elasticsearch. You'll likely have to update your mappings and reindex.

You can hack a scripted field together to convert the type at runtime if necessary, but it'll have overhead to every request. Can you share what you're trying to do with the number field?

---

<div class="post-metadata">

### Author: ![chenzilong444](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chenzilong444](https://discuss.elastic.co/u/chenzilong444)
#### Post date: [March 28, 2018, 6:45am UTC](https://discuss.elastic.co/t/how-to-change-the-type-on-kibana-but-not-logstash/122645/3 "2018-03-28T06:45:17Z")

</div>

thank you~ i solve my pro by creating scripted field

---

<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: [April 25, 2018, 6:45am UTC](https://discuss.elastic.co/t/how-to-change-the-type-on-kibana-but-not-logstash/122645/4 "2018-04-25T06:45:23Z")

</div>

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