About audit log rotation and retention

Hi Team,

I have installed Mongodb 7 Enterprise version. I have enabled auditing using the mongod.cfg file by giving auditLog: destination,file and path options.

Now i want to rotate my audit log. so i have logrotate: rename in the systemLog. I want to know how the rotation takes place, when i restart the server the rotation takes place, but i want to rotate my auditlog file in daily basis or by file size…

kindly give me a solution