Red Hat Directory Server 8.0 Configuration, Command, and File Reference

Access log level 4 enables logging for internal operations, which log search base, scope, filter,
and requested search attributes, in addition to the details of the search being performed.
In the following example, access logging level 768 is enabled (512 + 256), which logs access to
entries and referrals. In this extract, six entries and one referral are returned in response to the
search request, which is shown on the first line.
[12/Jul/2007:16:43:02 +0200] conn=306 fd=60 slot=60 connection from
127.0.0.1 to 127.0.0.1 \
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 SRCH base="dc=example,dc=com" \
scope=2 filter="(description=*)" attrs=ALL
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 ENTRY dn="ou=Special
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 ENTRY dn="cn=Accounting
Managers,ou=groups,dc=example,dc=com"
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 ENTRY dn="cn=HR
Managers,ou=groups,dc=example,dc=com"
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 ENTRY dn="cn=QA
Managers,ou=groups,dc=example,dc=com"
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 ENTRY dn="cn=PD
Managers,ou=groups,dc=example,dc=com"
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 ENTRY dn="ou=Red Hat
Servers,dc=example,dc=com"
[12/Jul/2007:16:43:02 +0200] conn=306 op=0 REFERRAL
1.3.1. Connection Description
The connection description, in this case conn=Internal, indicates that the connection is an
internal connection. The operation number op=-1 also indicates that the operation was initiated
internally.
[12/Jul/2007:16:45:46 +0200] conn=Internal op=-1
ENTRY dn="cn=\22dc=example,dc=com\22, cn=mapping tree, cn=config"
1.3.2. Options Description
The options description, in this case options=persistent, indicates that a persistent search is
being performed. Persistent searches can be used as a form of monitoring and configured to
return changes to given configurations as changes occur.
[12/Jul/2007:16:45:46 +0200] conn=Internal op=-1
SRCH base="cn=\22dc=example,dc=com\22,cn=mapping tree,cn=config"scope=0
filter="objectclass=nsMappingTree"attrs="nsslapd-referral"
options=persistent
In this example, both access logging level 512 and 4 are enabled, which results in both internal
Chapter 5. Access Log and Connection Code Reference
190