I have a few hundred sparkplug devices being added via the MQTT Engine. How do I automate the tag property to have history enabled with my storage provider?
Or is this not a thing? These are all devices sending timeseries data and there will be thousands of tags that need this enabled.
You could possibly script something using system.tag.configure.
pturmel's Spredsheet Import Tool might also be of use.
2 Likes
Be aware the MQTT tag providers can arbitrarily remove your tags, too, and any follow-up configuration you do may be lost. Consider using another tag provider that has reference tags pointing into the MQTT provider, and enable history on the reference tag. The source tag can then come and go without breaking your history.
3 Likes
Thank you. I managed to create reference tag script that runs periodically. Is this the best way to handle this type of data. The devices always send in approx a days worth of data at one time. So far I haven’t been able to get any backfill data to populate in my Postgres database.