Skip to content

OpenLDAP Quick Tips: OpenLDAP Logfile analysis

OpenLDAPOpen SourceSuretec Hi All,

Here's the 14th tip in the "OpenLDAP Quick Tips" series and today it comes from "Pablo Chamorro":

"You want to analyse your OpenLDAP logfile":

There are various ways to do this yourself by hand, but the have community already done the work for you and written the:

OpenLDAP Logfile analysis utility:

ldap[?]-stats.pl is a Perl program that can be used to analyze and report on OpenLDAP logfiles. The available reports include: operations (e.g., Connect, Bind, Unbind) performed per host, unindexed searches, attributes requested, search filters used, total operations per server, and operation breakdowns by day, hour and month.


A short sample output would look like:

CODE:
[root@suretec ~]# ./ldap[?]-stats.pl /var/log/openldap.log  Report Generated on Mon Dec  1 14:57:43 2008 -------------------------------------------- Processed "/var/log/openldap.log":  Apr  5 00:01:50 - Dec  1 08:39:33 Operation totals ---------------- Total operations              : 19258 Total connections             : 7061 Total authentication failures : 2358 Total binds                   : 4403 Total unbinds                 : 6661 Total searches                : 7849 Total compares                : 0 Total modifications           : 215 Total modrdns                 : 0 Total additions               : 128 Total deletions               : 2 Unindexed attribute requests  : 0 Operations per connection     : 2.73 ..... ..... .....


A longer sample is available.

Thanks,

Gavin.

If you have an entry for our "OpenLDAP Quick Tips" series, why not e-mail your tip to us.

P.S. For direct access to this section, you can click OpenLDAP Quick Tips.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

bronius on :

*These tips are a good resource. Have you got a suggestion on how to audit OpenLDAP for changes: who modified what at what times..

If there is a tool available, great, if not, it would be a good tip to demonstrate some easy log-parsing.

Gavin Henry on :

*See the latest post at your request ;-)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
BBCode format allowed
Pavatar, Gravatar, Favatar, MyBlogLog, Pavatar author images supported.
Form options

Warning: Use of undefined constant CHARSET_NATIVE - assumed 'CHARSET_NATIVE' (this will throw an Error in a future version of PHP) in /home/suretecsystems/www/blog/serendipity_config.inc.php on line 182
tweetbackcheck