# Logstash-jdbc-input mapping issues \[bug \]

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-input-mapping-issues-bug/26283>\
**Category:** Logstash\
**Created:** [July 25, 2015, 11:56am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-mapping-issues-bug/26283 "2015-07-25T11:56:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)\
**Post date:** [July 25, 2015, 11:56am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-mapping-issues-bug/26283/1 "2015-07-25T11:56:24Z")

</div>

I was trying to specify the type : lets us suppose I have already a mapping available for index . Lets say type is "mydata". If i talk about csv filter in Logstash it has the feature to specify the type =\> "mycsv", so that data will indexed on that type only. Is is not possible in case of jdbc plugin ?  
by default jdbc-input creates type "logs", if I am explicitly defining the type logs in index first and then trying to index the data using jdbc-input it is not indexing the data instead it is showing some unusual behavior..  
Any idea why ?

---

<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:** [July 25, 2015, 1:07pm UTC](https://discuss.elastic.co/t/logstash-jdbc-input-mapping-issues-bug/26283/2 "2015-07-25T13:07:14Z")

</div>

Duplicate post:

> [@Logstash logstash-jdbc-input queries (mapping and type)](https://discuss.elastic.co/t/logstash-logstash-jdbc-input-queries-mapping-and-type/26224):
>
> hi , I have some queries about logstash-input-jdbc how to specify the type : lets us suppose I have already a mapping available for index . Lets say type is "mydata". If i talk about csv filter in Logstash it has the feature to specify the type =\> "mycsv", so that data will indexed on that type only. Is is not possible in case of jdbc plugin ? by default jdbc-input creates type "logs", if I am explicitly defining the type logs in index first and then trying to index the data using jdbc-inpu…

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 26, 2015, 4:30am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-mapping-issues-bug/26283/3 "2015-07-26T04:30:05Z")

</div>

See other post then 🙂

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 26, 2015, 4:30am UTC](https://discuss.elastic.co/t/logstash-jdbc-input-mapping-issues-bug/26283/4 "2015-07-26T04:30:08Z")

</div>


