[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
AccessLog behaviour
- To: openldap-technical@openldap.org
- Subject: AccessLog behaviour
- From: Marco Pizzoli <marco.pizzoli@gmail.com>
- Date: Thu, 3 Feb 2011 09:44:28 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=xlEqjTBVZcLpea5v+Ayd6Plx5qbofFUB6HPuoVsCt+Y=; b=hOfG4Nm25SOzdmu6ZvchPIKBORtINPRIl6k/0WnArnQ9g25/+4XAXKpULrvhvoaHwq O9ZuJY2mzLNDJI5NFfeoCClwdwEHSbnt0lRrd9TsMlFV5WSAnDe4Yw16ix/z+tbG7YZx tV/M+vQUkECQdxbRigAIN0+YtlFSctZG8A5TY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=lHqKmA/eA4EHZnDJDp6kYyNy8VaDBNqeBmDJNJaE1n40rnDJYACyuX+I/SOzath3w/ vUP0dd85tOZSYhJJrevRruAvFPyO2FdMAImfHCAVSsQxuAp4smbu21M6j2cHf+57D1aV hcCFli3p9vOBAaeGwm6EPVDcPsolYc2kZp89E=
Hi all,
I would like to know the internal behaviour of slapo-accesslog.
I would like to have accesslog with a data retention of 10 days. In my ldap usage scenario this retention produce an accesslog db of quite 10GB of data.
Things are working quite fine, but when the log db contains data older than the retention I defined after restart slapd has a thread allocated at 100% of cpu of one processor.
I logged at loglevel 992 = 512 + 256 + 128 + 64 + 32, blocked with iptables every external ldap access and saw these lines in the log:
[cut]
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042854.000008Z,cn=log03,dc=mycorp.it" "reqStart" requested
Feb 3 09:37:08 ldap03 slapd[16289]: <= root access granted
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access granted by manage(=mwrscxd)
Feb 3 09:37:08 ldap03 slapd[16289]: <= test_filter 6
Feb 3 09:37:08 ldap03 slapd[16289]: => test_filter
Feb 3 09:37:08 ldap03 slapd[16289]: LE
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042854.000010Z,cn=log03,dc=mycorp.it" "reqStart" requested
Feb 3 09:37:08 ldap03 slapd[16289]: <= root access granted
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access granted by manage(=mwrscxd)
Feb 3 09:37:08 ldap03 slapd[16289]: <= test_filter 6
Feb 3 09:37:08 ldap03 slapd[16289]: => test_filter
Feb 3 09:37:08 ldap03 slapd[16289]: LE
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042854.000012Z,cn=log03,dc=mycorp.it" "reqStart" requested
Feb 3 09:37:08 ldap03 slapd[16289]: <= root access granted
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access granted by manage(=mwrscxd)
Feb 3 09:37:08 ldap03 slapd[16289]: <= test_filter 6
Feb 3 09:37:08 ldap03 slapd[16289]: => test_filter
Feb 3 09:37:08 ldap03 slapd[16289]: LE
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042854.000014Z,cn=log03,dc=mycorp.it" "reqStart" requested
Feb 3 09:37:08 ldap03 slapd[16289]: <= root access granted
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access granted by manage(=mwrscxd)
Feb 3 09:37:08 ldap03 slapd[16289]: <= test_filter 6
Feb 3 09:37:08 ldap03 slapd[16289]: => test_filter
Feb 3 09:37:08 ldap03 slapd[16289]: LE
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042855.000000Z,cn=log03,dc=mycorp.it" "reqStart" requested
Feb 3 09:37:08 ldap03 slapd[16289]: <= root access granted
Feb 3 09:37:08 ldap03 slapd[16289]: => access_allowed: search access granted by manage(=mwrscxd)
Feb 3 09:37:08 ldap03 slapd[16289]: <= test_filter 6
Feb 3 09:37:09 ldap03 slapd[16289]: => test_filter
Feb 3 09:37:09 ldap03 slapd[16289]: LE
Feb 3 09:37:09 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042855.000002Z,cn=log03,dc=mycorp.it" "reqStart" requested
Feb 3 09:37:09 ldap03 slapd[16289]: <= root access granted
Feb 3 09:37:09 ldap03 slapd[16289]: => access_allowed: search access granted by manage(=mwrscxd)
Feb 3 09:37:09 ldap03 slapd[16289]: <= test_filter 6
Feb 3 09:37:09 ldap03 slapd[16289]: => test_filter
Feb 3 09:37:09 ldap03 slapd[16289]: LE
Feb 3 09:37:09 ldap03 slapd[16289]: => access_allowed: search access to "reqStart=20110202042855.000004Z,cn=log03,dc=mycorp.it" "reqStart" requested
[cut]
I could assume that slapo-accesslog is querying all entries older than the retention and passes to delete them.
What if this step to end the job will take more time than the interval time of re-starting?
Augmenting the frequency of this job could help in this meaning?
Every best practice to follow to use accesllog effectively will be very appreciated! :-)
Thanks
Marco Pizzoli
--
_________________________________________
Non è forte chi non cade, ma chi cadendo ha la forza di rialzarsi.
Jim Morrison