We have simply added config for rsyslog:
/data/log/auditlog.ldif
{
rotate 5
daily
missingok
notifempty
dateext
compress
delaycompress
create ldap ldap
}
MJ
On 5/14/24 18:49, [email protected] wrote:
Hi Team,
We are running openldap 2.4. and I see ldapauditlog is too big about 14GB,
never rotated for more than a year.
What is the best way to rotate it?
I am thinking.
1. Stop the ldap instance
mv ldapauditlog file to ldapauditlog.bak
touch ldapauditlog
start the isntance
Is there any better way? Please confirm
Thanks
-Kaly