Factry Historian
...
Time series database
Retention policies
a retention policy is the part of influxdb data structure that describes for how long influxdb keeps data changing the default retention policy on an influxdb 1 8 x database open a terminal and run influxdb type auth followed by the admin credentials to authenticate type use internal factry to select the database (replace internal factry by the database of your interest) type show retention policies to list the retention policies configured for the database type alter retention policy autogen on internal factry duration 12w replication 1 default to change the duration of the retention policy replace 12w with the duration of interest more info on the duration format here type show retention policies to verify your changes example bash 5 1# influx connected to http //localhost 8086 version 1 8 10 influxdb shell version 1 8 10 \> auth username factry password \> use internal factry using database internal factry \> show retention policies name duration shardgroupduration replican default \ autogen 0s 168h0m0s 1 true \> alter retention policy autogen on internal factry duration 12w replication 1 default \> show retention policies name duration shardgroupduration replican default \ autogen 2016h0m0s 168h0m0s 1 true