Migrate a measurement with changed field and tagnames

influxdb
#1

Is there a way to migrate or rename field-names and tagnames of a measurement , I am new to influx and need help.

I guess one can pull out all the data and load it back … but looking for a db-admin solution really if possible…

Any suggestions is appreciated.

Thanks
MPaul

#2

A Continuous query like solution should work; e.g.

SELECT t AS tnew, r AS rnew INTO measurementb FROM measurementa

Won’t be possible for tags

1 Like
#3

related:

#4

No update option available; you have to delete and add the data again into database.

1 Like