Ben Stienstra

Linux, Unix, network, radio and more...

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 revision Previous revision
Next revision
Previous revision
centos_openldap_audit_log [2015/09/15 13:52]
admin [configure log rotate]
centos_openldap_audit_log [2015/09/15 13:57]
admin [configure log rotate]
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/auditlog.log { /var/log/slapd/auditlog.log {
Line 31: Line 31:
     monthly     monthly
     rotate 3     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: 2015/09/15 13:57 by admin