Renaming field names of stored data?


I was wondering if there is a way to rename fields of existing data. I have a measurement with a couple of years of data and around 90 fields. I need to rename some of these fields but I couldn’t find a simple way for it in Influx. Is that even possible to rename fields and keep the data where it was in Influx? Any help would be appreciated.

Hello @amatykiewicz,
Welcome! You can’t rename fields.
see point 3 which still applies:

However you can query for your old data and rename the field and write it back to a new measurement.

This is similar to migrating from OSS to Cloud. There’s a session at InfluxDays which covers this by Ana-Maria Calin in case you’re interested. Registration is free:

That’s what I thought. Thank you for your answer.