"/var/log/ovirt-engine/engine.log" "/var/log/ovirt-engine/server.log" "/var/log/ovirt-engine/ui.log" {
	daily
	minsize 10M
	missingok
	copytruncate
	rotate 20
	compress
}

# ovirt-host-mgmt-ansible-[0-9]*.log matches host update logs. [0-9] matches timestamp, whereas in check-for-updates
# logs an additional 'check' comes before the timestamp
# using ctime so that files will be removed 30 days from when their metadata was changed
"/var/log/ovirt-engine/host-deploy/ovirt-host-deploy*.log" "/var/log/ovirt-engine/host-deploy/ovirt-enroll-certs*.log"
"/var/log/ovirt-engine/host-deploy/ovirt-host-mgmt-ansible-[0-9]*.log" "/var/log/ovirt-engine/ova/*.log" "/var/log/ovirt-engine/db-manual/*.log" {
	monthly
	missingok
	compress
	nocreate
	rotate 1
	sharedscripts
	postrotate
	    /usr/bin/find /var/log/ovirt-engine/host-deploy/ -name "ovirt-host-deploy*.log.*" -type f -ctime +30 -delete
	    /usr/bin/find /var/log/ovirt-engine/host-deploy/ -name "ovirt-enroll-certs*.log.*" -type f -ctime +30 -delete
	    /usr/bin/find /var/log/ovirt-engine/host-deploy/ -name "ovirt-host-mgmt-ansible-[0-9]*.log.*" -type f -ctime +30 -delete
	    /usr/bin/find /var/log/ovirt-engine/ova/ -name "ovirt*.log.*" -type f -ctime +30 -delete
	endscript
}

"/var/log/ovirt-engine/host-deploy/ovirt-host-mgmt-ansible-check*.log" "/var/log/ovirt-engine/dump/*.hprof"  {
	daily
	missingok
	compress
	nocreate
	rotate 1
	sharedscripts
	postrotate
	    /usr/bin/find /var/log/ovirt-engine/host-deploy/ -name "ovirt-host-mgmt-ansible-check*.log.*" -type f -mtime +1 -delete
	endscript
}

"/var/log/ovirt-engine/brick-setup/*.log" {
	monthly
	missingok
	compress
	nocreate
	rotate 1
	postrotate
	    /usr/bin/find /var/log/ovirt-engine/brick-setup/ -name "ovirt-gluster-brick*.log.*" -type f -mtime +30 -delete
	endscript
}

"/var/log/ovirt-engine/cinderlib/*.log" {
	monthly
	missingok
	compress
	nocreate
	rotate 12
}
