Downsampling with Influx DB

Hi,
i added InfluxDB to my setup and i am storing all values, as they arrive, to the db für 15 days. So this 15 days are very detailed in time but i need more.

Can someone help me to get downsampling going?

I would like to store all states and attribute of my original “15d”-db to a new “730d” db with downsampling to the daily mean value.
I know this is done with continous queries. I am not sure how to created this in an easy way, e.g one query for each domain.

Please help. :slight_smile: