Thin out measurements in bucket after retention period

I want to thin out the measurements in a bucket after a year. The measurements are now second based. I want to thin out these measurements to 5 min average measurements and place all these measurements in a new bucket that will be stored forever.
Is this possible and can this automatically be handled?

Hello @Robin_Gerritsen,
I’m assuming you’re using 2.x. Then you could create a downsampling task to think out these measurements after they’re a year old.

Let me know if you’d like me to send any resource.