# Dynamic \_types

**URL:** <https://discuss.elastic.co/t/dynamic--types/88784>\
**Category:** Elasticsearch\
**Created:** [June 9, 2017, 3:41am UTC](https://discuss.elastic.co/t/dynamic--types/88784 "2017-06-09T03:41:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshboiina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sureshboiina/32/79183_2.png) [@sureshboiina](https://discuss.elastic.co/u/sureshboiina)\
**Post date:** [June 9, 2017, 3:41am UTC](https://discuss.elastic.co/t/dynamic--types/88784/1 "2017-06-09T03:41:21Z")

</div>

hi,

can we create dynamic type in logstash like

rabbitmq {  
host =\> "127.0.0.1"  
vhost =\> '/rfid'  
queue =\> "rfid.t"  
threads =\> 1  
prefetch\_count =\> 50  
port =\> 5672  
user =\> "sd"  
password =\> "pswd"  
codec =\> json  
durable =\> true  
**type =\> {message.header.acc\_type}**  
}

so from source (message.header.acc\_type) field need to create different types in same index.  
is it possible?

Adding to the above actually why we want dynamic \_type is

we are getting 30 types and for every type getting 1million records so total 30million records a day  
so by distributing each type we thought it will give good performance instead of putting every thing in one index/\_type(one type)

Please help us on this is it right way to get good performance.

Thanks.

---

<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 7, 2017, 3:41am UTC](https://discuss.elastic.co/t/dynamic--types/88784/2 "2017-07-07T03:41:31Z")

</div>

Closed on July 7, 2017, 3:41am UTC

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