# MQTT plugin not writing data to influxdb

**URL:** https://community.influxdata.com/t/mqtt-plugin-not-writing-data-to-influxdb/25632
**Category:** Telegraf
**Tags:** mqtt
**Created:** [July 3, 2022, 8:27pm UTC](https://community.influxdata.com/t/mqtt-plugin-not-writing-data-to-influxdb/25632 "2022-07-03T20:27:37Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Jay\_Clifford](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jay_clifford/32/8287_2.png) [@Jay\_Clifford](https://community.influxdata.com/u/Jay_Clifford)
#### Post date: [July 4, 2022, 10:06am UTC](https://community.influxdata.com/t/mqtt-plugin-not-writing-data-to-influxdb/25632/4 "2022-07-04T10:06:21Z")

</div>

Hi @jmo @phill,  
So it is more than acceptable to have two or even more of the same plugin type within your config. In some cases we even encourage it to spread the load with large datasets. Can I propose a config reshuffle:

```auto
[[inputs.mqtt_consumer]]
   servers = ["tcp://192.168.50.36:1883"]
   topics = [
     "perfscore"
   ]
   topic_tag = "topic"
   qos = 0
   connection_timeout = "30s"
   max_undelivered_messages = 1000
   persistent_session = false
   data_format = "value"
   data_type = "integer"

[[inputs.mqtt_consumer]]
   name_override = "mqtt_sensors"
   servers = ["tcp://192.168.50.36:1887"]
   topics = [
     "meraki/v1/mt/+/ble/+/temperature",
     "meraki/v1/mt/+/ble/+/humidity",
     "meraki/v1/mt/+/ble/+/batteryPercentage"
   ]

   topic_tag = "sensors"
   qos = 0
   connection_timeout = "30s"
   max_undelivered_messages = 1000
   persistent_session = false
   data_format = "json_v2"

   [[inputs.mqtt_consumer.topic_parsing]]
     topic = "+/+/+/+/+/+/+"
     tags = "_/_/_/network/_/device/_"

 [[inputs.mqtt_consumer.json_v2]]
 [[inputs.mqtt_consumer.json_v2.object]]
path = "@this"

```

---

_[View the full topic](https://community.influxdata.com/t/mqtt-plugin-not-writing-data-to-influxdb/25632)._
