# Logstash Jdbc-input Field mapping issue

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-input-field-mapping-issue/33358>\
**Category:** Logstash\
**Created:** [October 30, 2015, 10:40am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-field-mapping-issue/33358 "2015-10-30T10:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoffin](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@Hoffin](https://discuss.elastic.co/u/Hoffin)\
**Post date:** [October 30, 2015, 10:40am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-field-mapping-issue/33358/1 "2015-10-30T10:40:13Z")

</div>

In Lostash JDBC input all fields defaulted to String mapping. Auto field mapping is not available. How achieve the field map exactly match to to mysql table mapping.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 30, 2015, 6:12pm UTC](https://discuss.elastic.co/t/logstash-jdbc-input-field-mapping-issue/33358/2 "2015-10-30T18:12:12Z")

</div>

You'll have to change the ES index template that's applied for the index you're pushing data to.

---

<div class="post-metadata">

**Author:** ![Hoffin](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@Hoffin](https://discuss.elastic.co/u/Hoffin)\
**Post date:** [November 2, 2015, 6:06am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-field-mapping-issue/33358/3 "2015-11-02T06:06:02Z")

</div>

I've one question elastic search index mapping not analyzed field having raw type, in this case whether data is stored multiple times one as analyzed and another non analyzed?

---

<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 6, 2017, 5:24am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-field-mapping-issue/33358/4 "2017-07-06T05:24:37Z")

</div>


