Inflow: all old data was deleted after applying the retention policy

I had data for the last 7 days at inflow. I applied a retention policy and suddenly all the data was deleted. I have one instance of the influx.

CREATE RETENTION POLICY stats_30_day ON server_stats DURATION 30d REPLICATION 1 ALTER RETENTION POLICY stats_30_day ON server_stats DURATION 30d REPLICATION 1 default 

Any idea what went wrong?

+5
source share
1 answer

You have changed your default retention policy. Therefore, when prompted, you will need to specify a different storage policy. See: https://docs.influxdata.com/influxdb/v0.13/troubleshooting/frequently_encountered_issues/#missing-data-after-creating-a-new-default-retention-policy

+8
source

All Articles