I am about to use logrotate for the first time, I went through man page and some web guides.
I am trying to achieve rotation every week and deletion of the logs that are older than 7 days (I want to keep only 7 days history).
I am worried if the "maxage" should not be set to 8 days so I do not come to state where there are no logs left (log is about to be rotated on weekly basis but it is considered 7 days old so it is deleted instead of rotated).
My logrotate file looks like this:
/var/log/airflow/*/*.log {
# rotate log files weekly
weekly
# keep 1 week worth of backlogs
rotate 1
# remove rotated logs older than 7 days
maxage 7
missingok
}