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
Last revisionBoth sides next revision
centos_openldap_audit_log [2015/09/15 11:50] – [configure log rotate] admincentos_openldap_audit_log [2015/09/15 11:57] – [configure log rotate] admin
Line 24: Line 24:
 olcAuditlogFile: /var/log/slapd/auditlog.log olcAuditlogFile: /var/log/slapd/auditlog.log
 EOF</code> EOF</code>
-====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