3.8. 플러그인 로깅 구성
기본적으로 Directory Server는 플러그인이 시작되는 내부 이벤트를 기록하지 않습니다. 플러그인 작업을 디버깅하려면 모든 플러그인 또는 특정 플러그인에 대한 액세스 및 감사 로깅을 활성화할 수 있습니다.
3.8.1. 모든 플러그인에 대한 로깅 구성
모든 플러그인에 대한 로깅을 구성하려면 nsslapd-plugin-logging
특성을 사용합니다.
절차
모든 플러그인에 대해 액세스 및 감사 로깅을 활성화하려면 다음 명령을 사용합니다.
# dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-plugin-logging=on
추가 리소스
nsslapd-plugin-logging
속성에 대한 자세한 내용은 description 섹션을 참조하십시오.
3.8.2. 특정 플러그인의 로깅 구성
nsslapd-logAccess
및 nsslapd-logAudit
속성을 사용하여 플러그인에 대한 로깅을 구성합니다.
사전 요구 사항
-
nsslapd-accesslog
속성에는 유효한 경로와 액세스 로그 파일의 파일 이름이 포함되어 있습니다. -
nsslapd-auditlog
속성에는 유효한 경로와 감사 로그 파일의 파일 이름이 포함되어 있습니다.
절차
특정 플러그인에 대한 액세스 및 감사 로깅을 활성화하려면 LDAP 인터페이스를 사용하여
nsslapd-logAccess
및nsslapd-logAudit
속성을 수정합니다.# ldapmodify -D "cn=Directory Manager" -W -x -H ldap://server.example.com:389 dn: cn=MemberOf Plugin,cn=plugins,cn=config changetype: modify replace: nsslapd-logAccess nsslapd-logAccess: on dn: cn=MemberOf Plugin,cn=plugins,cn=config changetype: modify replace: nsslapd-logAudit nsslapd-logAudit: on
추가 리소스
속성에 대한 자세한 내용은 설명 섹션을 참조하십시오.