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/tem...
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.