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
centos_openldap_audit_log [2015/09/15 11:52] – [configure log rotate] admincentos_openldap_audit_log [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 {{tag>[centos7 linux ldap openldap security audit log]}} {{tag>[centos7 linux ldap openldap security audit log]}}
-~~TOC~~ 
    
 =====CentOS 7 - OpenLDAP 2.4 audit log===== =====CentOS 7 - OpenLDAP 2.4 audit log=====
Line 24: Line 23:
 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 30:
     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.1442317963.txt.gz · Last modified: 2015/09/15 11:52 by admin