# Multiple MQTT consumer

**URL:** <https://community.influxdata.com/t/multiple-mqtt-consumer/20142>\
**Category:** Systems\
**Tags:** influxdb, telegraf, mqtt\
**Created:** [May 30, 2021, 5:39pm UTC](https://community.influxdata.com/t/multiple-mqtt-consumer/20142 "2021-05-30T17:39:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![billdangerous](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@billdangerous](https://community.influxdata.com/u/billdangerous)\
**Post date:** [May 30, 2021, 5:39pm UTC](https://community.influxdata.com/t/multiple-mqtt-consumer/20142/1 "2021-05-30T17:39:54Z")

</div>

Hello,

I have a MQTT server providing very different kind of data and I would like to use telegraf to send those information into some buckets of an influx database.  
However I have the feeling that I need to create one input mqtt\_consumer for each bucket, meaning that if I have 10 different buckets, I will have have 10 different connections to my MQTT server. Am I right ? Is there a way to use only one TCP connection to the MQTT server ?

Thank you in avance,  
Bill
