# MQTT Tag Best Practice

**URL:** <https://forum.inductiveautomation.com/t/mqtt-tag-best-practice/112984>\
**Category:** Ignition\
**Tags:** opcua, perspective, scripting\
**Created:** [December 24, 2025, 2:47pm UTC](https://forum.inductiveautomation.com/t/mqtt-tag-best-practice/112984 "2025-12-24T14:47:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [December 24, 2025, 2:47pm UTC](https://forum.inductiveautomation.com/t/mqtt-tag-best-practice/112984/1 "2025-12-24T14:47:37Z")

</div>

I am trying to figure out the best practice for MQTT tags and tag provider. I have read a bunch of posts and it seems like there are two popular ways.

1. Create a script that monitors the MQTT engine tags and create tags in your tag provider
2. Create a UDT of derived tags from the mqtt engine tags.

I just wanted to see if this is still the best two ways to monitor mqtt tags and which is preferred?

I have a non sparkplug B MQTT broker, in there I have the topic structure of enterprise/site/area/line/ of any mqtt equipment.

I just want the tags for each line into specific tag providers. any suggestions? Thanks!

---

<div class="post-metadata">

**Author:** ![tgarrison](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tgarrison/32/80965_2.png) [@tgarrison](https://forum.inductiveautomation.com/u/tgarrison)\
**Post date:** [December 24, 2025, 4:25pm UTC](https://forum.inductiveautomation.com/t/mqtt-tag-best-practice/112984/2 "2025-12-24T16:25:22Z")

</div>

UDTs are generally always a good idea if your equipment is standardized enough for a UDT to be worthwhile. You can also then have a script that monitors the Engine provider and auto-creates the appropriate UDT in the appropriate provider.
