Skip to content

Tool for analyzing LDAP audit logs. Written specifically for IBM's directories.

License

Notifications You must be signed in to change notification settings

NemesTom/ldap_audit_log_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ldap_audit_log_analysis

In the attachments of the "Performance Tuning for IBM Security Directory Server" IBM Redbook (https://www.redbooks.ibm.com/abstracts/redp4258.html?Open) there is an "itdsaudit.jar" file that provides some useful statistics on what is in the audit log. (example logfile in the repo is from the attachments of the Redbook as well) Using a decompiler I was able to look into the jar and it's classes and see what the code does, but I'm not that big on Java, I wanted something in Python. This is the result. Does everything the original jar does and more.

Use it like this for example:

python ldap_audit_log_analysis.py

or like this:

python ldap_audit_log_analysis.py 'example.log'

or like this:

python ldap_audit_log_analysis.py 'example.log' -performance

or like this:

python ldap_audit_log_analysis.py 'example.log' -performance -guistats

Calling just the python file defaults to analysing 'logfile.txt' in the script's folder.

The -performance switch displays data on how long the script ran and how many lines it processed.

The -guicharts switch displays data with matplotlib charts.

If you want to use the -performance or -guicharts arguments you have to specify a logfile first.

As a general rule of thumb every ~500.000 line increases the runtime of the analysis by about 1.5 second, and the time it takes to analyze a logfile increases linearly with the number of lines.

About

Tool for analyzing LDAP audit logs. Written specifically for IBM's directories.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages