Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


centos_openldap_audit_log

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
centos_openldap_audit_log [2015/09/15 11:50] – [configure log rotate] admincentos_openldap_audit_log [2015/09/15 11:54] – [configure log rotate] admin
Line 26: Line 26:
 ====configure log rotate==== ====configure log rotate====
   * Configure log rotate, create the following file /etc/logrotate.d/slapd-audit:<code># vim /etc/logrotate.d/slapd-audit   * Configure log rotate, create the following file /etc/logrotate.d/slapd-audit:<code># vim /etc/logrotate.d/slapd-audit
-/var/log/slapd/{+/var/log/slapd/auditlog.log {
     notifempty     notifempty
     missingok     missingok
 +    monthly
 +    rotate 3
 +    compress
     copytruncate     copytruncate
-+}</code> 
-</code>+  * Test log rotation:<code>logrotate --force /etc/logrotate.d/slapd-audit</code>
centos_openldap_audit_log.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1