# Maintain historical data

**URL:** <https://community.influxdata.com/t/maintain-historical-data/3096>\
**Category:** Store\
**Tags:** influxdb, nagios\
**Created:** [November 14, 2017, 2:35pm UTC](https://community.influxdata.com/t/maintain-historical-data/3096 "2017-11-14T14:35:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loi](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@Loi](https://community.influxdata.com/u/Loi)\
**Post date:** [November 14, 2017, 2:35pm UTC](https://community.influxdata.com/t/maintain-historical-data/3096/1 "2017-11-14T14:35:41Z")

</div>

We use influxdb with nagios and we have a doubt when renaming a host. How to maintain the data history?  
Thank you very much

---

<div class="post-metadata">

**Author:** ![soniahcp](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@soniahcp](https://community.influxdata.com/u/soniahcp)\
**Post date:** [November 14, 2017, 3:50pm UTC](https://community.influxdata.com/t/maintain-historical-data/3096/2 "2017-11-14T15:50:05Z")

</div>

Do you need match the data even when you rename a host?

If it is, you can have a tag to join it, like

host=server1 tag=machine  
if you change the name of the host:

host=server2 tag=machine

so, you can use tag=machine to match the information about this server.  
Another option could be change by query the name of the host in influx database

---

<div class="post-metadata">

**Author:** ![Loi](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@Loi](https://community.influxdata.com/u/Loi)\
**Post date:** [November 15, 2017, 10:24am UTC](https://community.influxdata.com/t/maintain-historical-data/3096/3 "2017-11-15T10:24:06Z")

</div>

Is there an update statement to change the host in influx database?

Thanks!

---

<div class="post-metadata">

**Author:** ![soniahcp](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@soniahcp](https://community.influxdata.com/u/soniahcp)\
**Post date:** [November 16, 2017, 7:30am UTC](https://community.influxdata.com/t/maintain-historical-data/3096/4 "2017-11-16T07:30:24Z")

</div>

I think that influxdb doesn’t have this functionality yet, but here you have something it could be useful:

[Workaround](https://github.com/influxdata/influxdb/issues/3904)
