Univention Bugzilla – Bug 56774
Improve the "ugly" output of the univention-directory-logger
Last modified: 2024-02-12 12:55:31 CET
A customer wants to use the directory-logger for some kind of ldap monitoring. He suggested to shape this "ugly" output into something more readable. JSON would be much better for that and various log management programs(Graylog/ELK) can parse this much nicer.
Binary attributes cannot be displayed in JSON, so we would need to have knowledge about the schema and transform e.g. into base64 or something else.
As a reply, the customer said: The whole thing has a certain structure. With some python knowledge this should be possible with jc[1], you just have to build a parser for it. Then theoretically something like this could work: tail -f /<LOGFILE> | jc --ldapaudit > json.output
Another customer (2149) need this machine-readable (JSON) for an external monitoring tool with a focus on evaluating revision security