openldap also has a monitor backend IIRC, have you looked into that?
You won't get query details, but other metrics that could be useful,
and without having to enable logging.

On Sat, Feb 5, 2022 at 6:54 AM Michael Ströder <mich...@stroeder.com> wrote:
>
> On 2/5/22 03:27, Paul B. Henson wrote:
> > Does anybody know of any good tools that can rip through an openldap log
> > file and analyze it, creating a report of what queries are being made
> > and how long they are taking to process?
>
> ldap-stats.pl tool mentioned by Dave, is indeed very useful for off-line
> analysis.
>
> You could also look into tools which extract metrics from logs and
> provide them as a Prometheus-compatible exporter: mtail, promtail etc.
>
> Personally I'm using mtail:
>
> https://github.com/google/mtail
>
> My mtail prog does not correlate request and response lines and does not
> extract filters but will extract some metrics useful as indication to
> search for problems.
>
> Of course you can adapt it to your own needs:
>
> https://code.stroeder.com/AE-DIR/ansible-ae-dir-server/src/branch/master/templates/mtail/ae-slapd.mtail.j2
>
> Note: The above is a Jinja2 template used by ansible, so you have to
> replace the parts enclosed in double curly braces with your
> site-specific values.
>
> Ciao, Michael.

Reply via email to